Some additional error checking for when no master is defined

pull/1/head
Mark Veidemanis 7 years ago
parent fc8a115e17
commit 7e1e0ee0d2

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

@ -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)

Loading…
Cancel
Save