From e744c299634d190666c5d951c420ae569c7fb317 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 5 Jan 2017 20:29:19 +0100 Subject: [PATCH] plugin text commands: added /whoami command which return current full jid --- src/plugins/plugin_misc_text_commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/plugin_misc_text_commands.py b/src/plugins/plugin_misc_text_commands.py index 477e886a..ca6bf265 100755 --- a/src/plugins/plugin_misc_text_commands.py +++ b/src/plugins/plugin_misc_text_commands.py @@ -361,6 +361,10 @@ class TextCommands(object): # We just ignore the command as the match is done on receiption by clients return True + def cmd_whoami(self, client, mess_data): + """give your own jid""" + self.feedBack(client, client.jid.full(), mess_data) + def cmd_help(self, client, mess_data): """show help on available commands