We shouldn't try to get ChannelValues when not given a channel.

This commit is contained in:
Jeremy Fincher 2004-12-20 18:56:25 +00:00
parent 40f63858b0
commit ca8100605c

View File

@ -1154,7 +1154,7 @@ 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: if channel is not None and ircutils.isChannel(channel):
group = group.get(channel) group = group.get(channel)
if value: if value:
return group() return group()