Some additional error checking for when no master is defined

This commit is contained in:
Mark Veidemanis 2017-12-24 21:09:18 +00:00
parent fc8a115e17
commit 7e1e0ee0d2
2 changed files with 3 additions and 1 deletions

View File

@ -16,5 +16,5 @@
"username": null,
"authtype": null
},
"Master": []
"Master": [null, null]
}

View File

@ -370,6 +370,8 @@ class Helper(object):
def sendMaster(self, data):
if config["Master"][0] in IRCPool.keys():
IRCPool[config["Master"][0]].msg(config["Master"][1], data)
else:
warning("Master with no IRC instance defined")
for i in MonitorPool:
connections[i].send(data)