From 5c09ff6967a238362d08aca7eecd069b9db81b6b Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 11 Sep 2013 16:20:20 +1200 Subject: [PATCH] Ignore votes with spaces --- plugins/karma.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/karma.py b/plugins/karma.py index 419e331..fd700a6 100644 --- a/plugins/karma.py +++ b/plugins/karma.py @@ -78,8 +78,8 @@ def karma_add(match, nick='', chan='', db=None, notice=None): 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 + if len(nick_vote) < 3 or " " in nick_vote: + return # ignore anything below 3 chars in length or with spaces vote_allowed, when = allowed(db, nick, nick_vote) if vote_allowed: