3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 03:33:10 +01:00

bots: remove duplicate nick_to_uid call

This commit is contained in:
James Lu 2017-08-02 22:09:48 +08:00
parent 529d1d84be
commit 76b8932eeb

View File

@ -33,12 +33,13 @@ def quit(irc, source, args):
except IndexError:
irc.error("Not enough arguments. Needs 1-2: nick, reason (optional).")
return
if irc.pseudoclient.uid == irc.nick_to_uid(nick):
irc.error("Cannot quit the main PyLink client!")
return
u = irc.nick_to_uid(nick)
if irc.pseudoclient.uid == u:
irc.error("Cannot quit the main PyLink client!")
return
quitmsg = ' '.join(args[1:]) or 'Client Quit'
if not irc.is_manipulatable_client(u):