changeset 2111:98672e35d2f5

plugin text commands: added /whoami command which return current full jid
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 20:29:19 +0100
parents 2d633b3c923d
children 877d0a2d0d86
files src/plugins/plugin_misc_text_commands.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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