mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Fix for bug #1038895.
This commit is contained in:
parent
9298888353
commit
2ff2dadd81
@ -479,6 +479,10 @@ class Misc(callbacks.Privmsg):
|
||||
return ircutils.hostmaskPatternEqual(arg, m.nick)
|
||||
predicates['from'] = f
|
||||
elif option == '--in':
|
||||
if arg not in irc.state.channels:
|
||||
irc.error('I\'m not in %s.' % arg, Raise=True)
|
||||
if msg.nick in irc.state.channels[arg].users:
|
||||
irc.error('You\'re not in %s.' % arg, Raise=True)
|
||||
def f(m, arg=arg):
|
||||
return ircutils.strEqual(m.args[0], arg)
|
||||
predicates['in'] = f
|
||||
|
Loading…
Reference in New Issue
Block a user