mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
We shouldn't try to get ChannelValues when not given a channel.
This commit is contained in:
parent
ca8100605c
commit
8b563876ea
@ -1154,8 +1154,11 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
names = registry.split(name)
|
names = registry.split(name)
|
||||||
for name in names:
|
for name in names:
|
||||||
group = group.get(name)
|
group = group.get(name)
|
||||||
if channel is not None and ircutils.isChannel(channel):
|
if channel is not None:
|
||||||
group = group.get(channel)
|
if ircutils.isChannel(channel):
|
||||||
|
group = group.get(channel)
|
||||||
|
else:
|
||||||
|
self.log.debug('registryValue got channel=%r', channel)
|
||||||
if value:
|
if value:
|
||||||
return group()
|
return group()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user