Improve ZNC error message detection
This commit is contained in:
parent
b97ebe43ab
commit
5777ef0cfe
|
@ -68,9 +68,8 @@ class IRCRelay(IRCClient):
|
|||
|
||||
def privmsg(self, user, channel, msg):
|
||||
nick, ident, host = self.parsen(user)
|
||||
if "does not exist" in msg or "doesn't exist" in msg:
|
||||
error("ZNC issue:", msg)
|
||||
if "Unable to load" in msg:
|
||||
for i in main.ZNCErrors:
|
||||
if i in msg:
|
||||
error("ZNC issue:", msg)
|
||||
if nick[0] == main.config["Tweaks"]["ZNC"]["Prefix"]:
|
||||
nick = nick[1:]
|
||||
|
|
Loading…
Reference in New Issue