correctly unnest channel config
While we were storing the correct self.data for nested channel configs, we weren't actually using self.data to when we attempted to connect to irc channels. Fixup the data variable early enough that IRC channel connection in the ER bot should work again. Change-Id: I2758fb79e3b424def53415d6fdc41fbc99d0ca9f
This commit is contained in:
parent
3db753937d
commit
61c96147dc
@ -224,11 +224,12 @@ class MessageConfig(dict):
|
||||
|
||||
class ChannelConfig(object):
|
||||
def __init__(self, data):
|
||||
self.data = data
|
||||
# for compatibility reasons we support a pre channel hierarchy
|
||||
# model of the world.
|
||||
if 'channels' in data:
|
||||
self.data = data['channels']
|
||||
data = data['channels']
|
||||
|
||||
self.data = data
|
||||
|
||||
keys = data.keys()
|
||||
for key in keys:
|
||||
|
Loading…
x
Reference in New Issue
Block a user