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)
|
2012-12-18 01:08:38 +00:00
|
|
|
|
|
|
|
def revstr(self, msg, tab):
|
|
|
|
msg['body'] = msg['body'][::-1]
|