comparison src/plugins/plugin_misc_text_commands.py @ 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 ed33cd382bf9
children aa94f33fd2ad
comparison
equal deleted inserted replaced
2110:2d633b3c923d 2111:98672e35d2f5
359 e.g.: "/me clenches his fist" will give "[YOUR_NICK] clenches his fist" 359 e.g.: "/me clenches his fist" will give "[YOUR_NICK] clenches his fist"
360 """ 360 """
361 # We just ignore the command as the match is done on receiption by clients 361 # We just ignore the command as the match is done on receiption by clients
362 return True 362 return True
363 363
364 def cmd_whoami(self, client, mess_data):
365 """give your own jid"""
366 self.feedBack(client, client.jid.full(), mess_data)
367
364 def cmd_help(self, client, mess_data): 368 def cmd_help(self, client, mess_data):
365 """show help on available commands 369 """show help on available commands
366 370
367 @command: [cmd_name] 371 @command: [cmd_name]
368 - cmd_name: name of the command for detailed help 372 - cmd_name: name of the command for detailed help