mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +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:
|
except IndexError:
|
||||||
irc.error("Not enough arguments. Needs 1-2: nick, reason (optional).")
|
irc.error("Not enough arguments. Needs 1-2: nick, reason (optional).")
|
||||||
return
|
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)
|
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'
|
quitmsg = ' '.join(args[1:]) or 'Client Quit'
|
||||||
|
|
||||||
if not irc.is_manipulatable_client(u):
|
if not irc.is_manipulatable_client(u):
|
||||||
|
Loading…
Reference in New Issue
Block a user