mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
opercmds: forbid killing the main PyLink client
This commit is contained in:
parent
b9f782868c
commit
73261a31bd
@ -386,6 +386,9 @@ def kill(irc, source, args):
|
|||||||
# Whatever we were told to kick doesn't exist!
|
# Whatever we were told to kick doesn't exist!
|
||||||
irc.error("No such nick %r." % target)
|
irc.error("No such nick %r." % target)
|
||||||
return
|
return
|
||||||
|
elif irc.pseudoclient.uid == targetu:
|
||||||
|
irc.error("Cannot kill the main PyLink client!")
|
||||||
|
return
|
||||||
|
|
||||||
irc.kill(sender, targetu, reason)
|
irc.kill(sender, targetu, reason)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user