plugin text commands: added /whoami command which return current full jid
This commit is contained in:
parent
d0c56aaadb
commit
e744c29963
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue