super useful plugin that does a revstr on your messages.
This commit is contained in:
parent
ca7489fd8f
commit
b0e9e0919f
1 changed files with 8 additions and 0 deletions
8
plugins/revstr.py
Normal file
8
plugins/revstr.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from plugin import BasePlugin
|
||||
|
||||
class Plugin(BasePlugin):
|
||||
def init(self):
|
||||
self.add_event_handler('muc_say', self.revstr)
|
||||
|
||||
def revstr(self, msg, tab):
|
||||
msg['body'] = msg['body'][::-1]
|
Loading…
Reference in a new issue