# HG changeset patch # User Goffi # Date 1483644559 -3600 # Node ID 98672e35d2f54066309931d234abf6da83ca2dd2 # Parent 2d633b3c923dc076eb77189a8b7eb62b12e86c19 plugin text commands: added /whoami command which return current full jid diff -r 2d633b3c923d -r 98672e35d2f5 src/plugins/plugin_misc_text_commands.py --- a/src/plugins/plugin_misc_text_commands.py Thu Jan 05 20:29:05 2017 +0100 +++ b/src/plugins/plugin_misc_text_commands.py Thu Jan 05 20:29:19 2017 +0100 @@ -361,6 +361,10 @@ # 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