From 382570b0989d233c15a7e157266194e131d8deef Mon Sep 17 00:00:00 2001 From: GLolol Date: Sat, 16 Nov 2013 12:16:32 -0800 Subject: [PATCH] LinkRelay: improve "You are not in channel" msg --- LinkRelay/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LinkRelay/plugin.py b/LinkRelay/plugin.py index 072b50d..43d3830 100644 --- a/LinkRelay/plugin.py +++ b/LinkRelay/plugin.py @@ -400,7 +400,10 @@ class LinkRelay(callbacks.Plugin): relay.sourceNetwork == irc.network: # Little security function here to prevent spies :P if msg.nick not in irc.state.channels[channel].users: - irc.error(_('You are not in the channel specified.')) + self.log.warning('LinkRelay: %s on %s attempted to view' + ' nicks in %s without being in it.' + % (msg.nick, irc.network, channel)) + irc.error(_('You are not in %s.' % channel)) break elif not relay.hasTargetIRC: irc.reply(_('I haven\'t scraped the IRC object for %s '