diff options
| author | 2018-09-09 17:34:44 +0100 | |
|---|---|---|
| committer | 2018-09-09 17:34:44 +0100 | |
| commit | 4eaf9e5aeb63f164ff03482d1498604ccfb0d990 (patch) | |
| tree | b7a24a3d17f3ef997d42c2afd1a4c0585427b3c6 /modules | |
| parent | Make commands be processed under received.message.* at PRIORITY_LOW, eat the (diff) | |
| signature | ||
Fix an incorrect call to event["stderr"] in karma.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/karma.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/karma.py b/modules/karma.py index cb11e9ff..c7c3a263 100644 --- a/modules/karma.py +++ b/modules/karma.py @@ -52,10 +52,14 @@ class Module(object): event["user"].last_karma = time.time() elif verbose: if target: - self.events.on("send").on("stderr").call(module_name="Karma", - target=event["channel"], message="You cannot change your own karma") + self.events.on("send.stderr").call( + module_name="Karma", target=event["channel"], + message="You cannot change your own karma") elif verbose: - event["stderr"].write("Try again in a couple of seconds") + self.events.on("send.stderr").call(module_name="Karma", + target=event["channel"], + message="Try again in a couple of seconds") + def karma(self, event): if event["args"]: target = event["args"] |
