Ignore votes with spaces
This commit is contained in:
parent
dde9b97223
commit
5c09ff6967
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ def karma_add(match, nick='', chan='', db=None, notice=None):
|
||||||
if nick.lower() == nick_vote.lower():
|
if nick.lower() == nick_vote.lower():
|
||||||
notice("You can't vote on yourself!")
|
notice("You can't vote on yourself!")
|
||||||
return
|
return
|
||||||
if len(nick_vote) < 3:
|
if len(nick_vote) < 3 or " " in nick_vote:
|
||||||
return # ignore anything below 3 chars in length
|
return # ignore anything below 3 chars in length or with spaces
|
||||||
|
|
||||||
vote_allowed, when = allowed(db, nick, nick_vote)
|
vote_allowed, when = allowed(db, nick, nick_vote)
|
||||||
if vote_allowed:
|
if vote_allowed:
|
||||||
|
|
Reference in a new issue