Some additional error checking for when no master is defined
This commit is contained in:
parent
fc8a115e17
commit
7e1e0ee0d2
|
@ -16,5 +16,5 @@
|
||||||
"username": null,
|
"username": null,
|
||||||
"authtype": null
|
"authtype": null
|
||||||
},
|
},
|
||||||
"Master": []
|
"Master": [null, null]
|
||||||
}
|
}
|
||||||
|
|
|
@ -370,6 +370,8 @@ class Helper(object):
|
||||||
def sendMaster(self, data):
|
def sendMaster(self, data):
|
||||||
if config["Master"][0] in IRCPool.keys():
|
if config["Master"][0] in IRCPool.keys():
|
||||||
IRCPool[config["Master"][0]].msg(config["Master"][1], data)
|
IRCPool[config["Master"][0]].msg(config["Master"][1], data)
|
||||||
|
else:
|
||||||
|
warning("Master with no IRC instance defined")
|
||||||
for i in MonitorPool:
|
for i in MonitorPool:
|
||||||
connections[i].send(data)
|
connections[i].send(data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue