mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
bots: allow JOIN/NICK/QUIT on ServiceBot clients
This commit is contained in:
parent
c62dd272d6
commit
1c86f32003
@ -74,7 +74,7 @@ def joinclient(irc, source, args):
|
||||
irc.reply("Error: No valid channels given.")
|
||||
return
|
||||
|
||||
if not irc.isManipulatableClient(u):
|
||||
if not (irc.isManipulatableClient(u) or irc.isServiceBot(u)):
|
||||
irc.reply("Error: Cannot force join a protected PyLink services client.")
|
||||
return
|
||||
|
||||
@ -116,7 +116,7 @@ def nick(irc, source, args):
|
||||
irc.reply('Error: Invalid nickname %r.' % newnick)
|
||||
return
|
||||
|
||||
elif not irc.isManipulatableClient(u):
|
||||
elif not (irc.isManipulatableClient(u) or irc.isServiceBot(u)):
|
||||
irc.reply("Error: Cannot force nick changes for a protected PyLink services client.")
|
||||
return
|
||||
|
||||
@ -158,7 +158,7 @@ def part(irc, source, args):
|
||||
irc.reply("Error: No valid channels given.")
|
||||
return
|
||||
|
||||
if not irc.isManipulatableClient(u):
|
||||
if not (irc.isManipulatableClient(u) or irc.isServiceBot(u)):
|
||||
irc.reply("Error: Cannot force part a protected PyLink services client.")
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user