xep-0084: Look for specific user and print ID

Add a `/avatar` command.
This commit is contained in:
Michael Vetter
2019-12-18 11:24:50 +01:00
parent 771dfab123
commit e3538cf739
5 changed files with 47 additions and 2 deletions

View File

@@ -78,6 +78,7 @@
#include "xmpp/jid.h"
#include "xmpp/muc.h"
#include "xmpp/chat_session.h"
#include "xmpp/avatar.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
@@ -8660,3 +8661,11 @@ cmd_color(ProfWin *window, const char *const command, gchar **args)
return TRUE;
}
gboolean
cmd_avatar(ProfWin *window, const char *const command, gchar **args)
{
avatar_get_by_nick(args[0]);
return TRUE;
}