From bfd9beadf171e95906fe92b4495f7e6dd60181db Mon Sep 17 00:00:00 2001 From: GLolol Date: Mon, 30 Jun 2014 21:31:11 -0700 Subject: [PATCH] RelayLink: more bugfixes, handle 'nicks --count' a bit better --- RelayLink/plugin.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/RelayLink/plugin.py b/RelayLink/plugin.py index a59ca78..cf570d6 100755 --- a/RelayLink/plugin.py +++ b/RelayLink/plugin.py @@ -481,13 +481,12 @@ class RelayLink(callbacks.Plugin): relay.targetChannel, relay.targetNetwork, utils.str.commaAndify(users)) - if 'count' not in keys: - irc.reply(s, private=True) - irc.reply("Total users across %d channels: %d. " % \ - (totalChans, totalUsers), private=True) - else: - irc.reply("Total users across %d channels: %d. " % \ - (totalChans, totalUsers)) + if 'count' not in keys: irc.reply(s, private=True) + if not irc.nested: + irc.reply("Total users across %d channels: %d. " % \ + (totalChans, totalUsers), private=False if 'count' in keys else True) + else: + irc.reply(totalUsers) irc.noReply() nicks = wrap(nicks, ['Channel', getopts({'count':''})])