mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
bots: remove duplicate nick_to_uid call
This commit is contained in:
parent
529d1d84be
commit
76b8932eeb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user