Fix previous commit for config variables that are not channel-specific.

This commit is contained in:
Valentin Lorentz 2014-04-03 11:51:13 +00:00
parent 36568aa849
commit de1c01f47b

View File

@ -240,7 +240,8 @@ class Config(callbacks.Plugin):
if s: if s:
if hasattr(group, 'value') and not group._private: if hasattr(group, 'value') and not group._private:
channel = msg.args[0] channel = msg.args[0]
if irc.isChannel(channel): if irc.isChannel(channel) and \
channel in group._children:
globvalue = str(group) globvalue = str(group)
chanvalue = str(group.get(channel)) chanvalue = str(group.get(channel))
if chanvalue != globvalue: if chanvalue != globvalue: