fix giving rep to yourself via different nick with same account
thanks to findus for discovering this :D
This commit is contained in:
6
bert.py
6
bert.py
@ -365,14 +365,14 @@ def command_loop():
|
|||||||
except:
|
except:
|
||||||
reason = "None"
|
reason = "None"
|
||||||
print("with no reason")
|
print("with no reason")
|
||||||
if user == ircnick:
|
|
||||||
say(channel, "You can't give rep to yourself. Selfish little prick!")
|
|
||||||
continue
|
|
||||||
try:
|
try:
|
||||||
acc_name = is_registered(user)
|
acc_name = is_registered(user)
|
||||||
give_acc = is_registered(ircnick)
|
give_acc = is_registered(ircnick)
|
||||||
print("found account name for "+str(user)+": "+str(acc_name))
|
print("found account name for "+str(user)+": "+str(acc_name))
|
||||||
if acc_name != None and give_acc != None:
|
if acc_name != None and give_acc != None:
|
||||||
|
if acc_name == give_acc:
|
||||||
|
say(channel, "You can't give rep to yourself. Selfish little prick!")
|
||||||
|
continue
|
||||||
give_rep(acc_name, user, give_acc, reason, channel)
|
give_rep(acc_name, user, give_acc, reason, channel)
|
||||||
elif give_acc == None:
|
elif give_acc == None:
|
||||||
say(channel, "You are not registered!")
|
say(channel, "You are not registered!")
|
||||||
|
Reference in New Issue
Block a user