2012-12-18 01:08:38 +00:00
|
|
|
from plugin import BasePlugin
|
|
|
|
|
|
|
|
class Plugin(BasePlugin):
|
|
|
|
def init(self):
|
2013-03-08 21:53:35 +00:00
|
|
|
self.api.add_event_handler('muc_say', self.revstr)
|
2013-03-18 22:08:42 +00:00
|
|
|
self.api.add_event_handler('conversation_say', self.revstr)
|
|
|
|
self.api.add_event_handler('private_say', self.revstr)
|
2012-12-18 01:08:38 +00:00
|
|
|
|
|
|
|
def revstr(self, msg, tab):
|
|
|
|
msg['body'] = msg['body'][::-1]
|