mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
bots: allow JOIN/NICK/QUIT on ServiceBot clients
(cherry picked from commit 1c86f32003
)
This commit is contained in:
parent
a7662f8327
commit
df50b7b137
@ -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