diff --git a/example.json b/example.json index d22a183..5faaaaf 100644 --- a/example.json +++ b/example.json @@ -16,5 +16,5 @@ "username": null, "authtype": null }, - "Master": [] + "Master": [null, null] } diff --git a/threshold b/threshold index 7371efb..c630333 100755 --- a/threshold +++ b/threshold @@ -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)