mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-04 09:21:12 -05:00
LinkRelay: improve "You are not in channel" msg
This commit is contained in:
parent
b9aef9610c
commit
382570b098
@ -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 '
|
||||
|
Loading…
x
Reference in New Issue
Block a user