comparison src/plugins/plugin_misc_text_commands.py @ 1025:24fe24cfb363

plugin text commands: added /me command to avoid the need to escape the /
author Goffi <goffi@goffi.org>
date Thu, 15 May 2014 19:51:53 +0200
parents 291eb8216f6e
children e88bff4c8b77
comparison
equal deleted inserted replaced
1024:7e43ea75cce8 1025:24fe24cfb363
231 spaces = (longuest - len(command)) * ' ' 231 spaces = (longuest - len(command)) * ' '
232 help_cmds.append(" /%s: %s %s" % (command, spaces, help_str)) 232 help_cmds.append(" /%s: %s %s" % (command, spaces, help_str))
233 233
234 help_mess = _(u"Text commands available:\n%s") % (u'\n'.join(help_cmds), ) 234 help_mess = _(u"Text commands available:\n%s") % (u'\n'.join(help_cmds), )
235 self.feedBack(help_mess, mess_data, profile) 235 self.feedBack(help_mess, mess_data, profile)
236
237 def cmd_me(self, mess_data, profile):
238 """Display a message at third person"""
239 # We just catch the method and continue it as the frontends should manage /me display
240 return True