diff --git a/bert.py b/bert.py index 52111ef..d97e5e9 100755 --- a/bert.py +++ b/bert.py @@ -365,14 +365,14 @@ def command_loop(): except: reason = "None" print("with no reason") - if user == ircnick: - say(channel, "You can't give rep to yourself. Selfish little prick!") - continue try: acc_name = is_registered(user) give_acc = is_registered(ircnick) print("found account name for "+str(user)+": "+str(acc_name)) 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) elif give_acc == None: say(channel, "You are not registered!")