diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/double.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/double.py b/plugins/double.py new file mode 100644 index 00000000..04728bbf --- /dev/null +++ b/plugins/double.py @@ -0,0 +1,10 @@ +from plugin import BasePlugin + +class Plugin(BasePlugin): + def init(self): + self.add_event_handler('muc_say', self.double) + + def double(self, msg, tab): + split = msg['body'].split() + if split: + msg['body'] = split[0] + ' ' + msg['body'] |