mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +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)
|
return ircutils.hostmaskPatternEqual(arg, m.nick)
|
||||||
predicates['from'] = f
|
predicates['from'] = f
|
||||||
elif option == '--in':
|
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):
|
def f(m, arg=arg):
|
||||||
return ircutils.strEqual(m.args[0], arg)
|
return ircutils.strEqual(m.args[0], arg)
|
||||||
predicates['in'] = f
|
predicates['in'] = f
|
||||||
|
Loading…
Reference in New Issue
Block a user