plugin text commands: added /whoami command which return current full jid

This commit is contained in:
Goffi 2017-01-05 20:29:19 +01:00
commit e744c29963

View file

@ -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