3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

opercmds: forbid killing the main PyLink client

This commit is contained in:
James Lu 2018-05-21 02:37:53 -07:00
parent b9f782868c
commit 73261a31bd

View File

@ -386,6 +386,9 @@ def kill(irc, source, args):
# Whatever we were told to kick doesn't exist!
irc.error("No such nick %r." % target)
return
elif irc.pseudoclient.uid == targetu:
irc.error("Cannot kill the main PyLink client!")
return
irc.kill(sender, targetu, reason)