LinkRelay: improve "You are not in channel" msg

This commit is contained in:
GLolol 2013-11-16 12:16:32 -08:00
parent b9aef9610c
commit 382570b098

View File

@ -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 '