From 45ac28b6a6e99339a79091ea1f0e8b94028fb670 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 11 Sep 2013 10:58:33 +1200 Subject: [PATCH] added message when you try to vote on yourself @blha303 --- plugins/karma.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/karma.py b/plugins/karma.py index 6ce08bc..7ed5e54 100644 --- a/plugins/karma.py +++ b/plugins/karma.py @@ -76,6 +76,7 @@ def karma_add(match, nick='', chan='', db=None, notice=None): nick_vote = match.group(1).strip().replace("+", "") if nick.lower() == nick_vote.lower(): + notice("You can't vote on yourself!") return if len(nick_vote) < 3: return # ignore anything below 3 chars in length @@ -110,7 +111,7 @@ def karma_add(match, nick='', chan='', db=None, notice=None): @hook.command('k') @hook.command def karma(inp, nick='', chan='', db=None): - """.k/.karma -- returns karma stats for """ + """k/karma -- returns karma stats for """ if not db_ready: db_init(db)