From b59db48e203504198ccfbc2c6442ba42352c1066 Mon Sep 17 00:00:00 2001 From: GLolol Date: Wed, 31 Dec 2014 22:51:46 -0500 Subject: [PATCH] Admin: 'channels': call reply() w/ private=True instead of requiring privacy --- plugins/Admin/plugin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/Admin/plugin.py b/plugins/Admin/plugin.py index 8f417d261..44e5a437d 100644 --- a/plugins/Admin/plugin.py +++ b/plugins/Admin/plugin.py @@ -167,16 +167,15 @@ class Admin(callbacks.Plugin): def channels(self, irc, msg, args): """takes no arguments - Returns the channels the bot is on. Must be given in private, in order - to protect the secrecy of secret channels. + Returns the channels the bot is on. """ L = irc.state.channels.keys() if L: utils.sortBy(ircutils.toLower, L) - irc.reply(format('%L', L)) + irc.reply(format('%L', L), private=True) else: irc.reply(_('I\'m not currently in any channels.')) - channels = wrap(channels, ['private']) + channels = wrap(channels) def do484(self, irc, msg): irc = self.pendingNickChanges.get(irc, None)