From df50b7b137a1b3165aa28d9fd4db19d5ed2c4cca Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 19 Sep 2016 18:23:11 -0700 Subject: [PATCH] bots: allow JOIN/NICK/QUIT on ServiceBot clients (cherry picked from commit 1c86f3200302c3398a448436be79e507601b2f9c) --- plugins/bots.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/bots.py b/plugins/bots.py index 1dc1dde..53ecede 100644 --- a/plugins/bots.py +++ b/plugins/bots.py @@ -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