diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/figlet.py | 2 | ||||
-rw-r--r-- | plugins/rainbow.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/figlet.py b/plugins/figlet.py index 52bbc67a..4d147956 100644 --- a/plugins/figlet.py +++ b/plugins/figlet.py @@ -7,7 +7,7 @@ class Plugin(BasePlugin): self.add_event_handler('conversation_say', self.figletize) self.add_event_handler('private_say', self.figletize) - def figletize(self, msg): + def figletize(self, msg, tab): process = subprocess.Popen(['figlet', msg['body']], stdout=subprocess.PIPE) result = process.communicate()[0].decode('utf-8') msg['body'] = result diff --git a/plugins/rainbow.py b/plugins/rainbow.py index 8a73da03..3c4813d0 100644 --- a/plugins/rainbow.py +++ b/plugins/rainbow.py @@ -16,5 +16,5 @@ class Plugin(BasePlugin): self.add_event_handler('private_say', self.rainbowize) self.add_event_handler('conversation_say', self.rainbowize) - def rainbowize(self, msg): + def rainbowize(self, msg, tab): msg['body'] = ''.join(['%s%s' % (rand_color(),char,) for char in xhtml.clean_text(msg['body'])]) |