code 520
This commit is contained in:
parent
3ac17f3a6e
commit
1993bcacc6
1 changed files with 4 additions and 0 deletions
4
bot.py
4
bot.py
|
@ -101,6 +101,10 @@ class bot:
|
||||||
if origin != "null":
|
if origin != "null":
|
||||||
sendmsg(f"{chan} is +i, and I'm not invited.", origin)
|
sendmsg(f"{chan} is +i, and I'm not invited.", origin)
|
||||||
break
|
break
|
||||||
|
elif code == 520:
|
||||||
|
self.log(f"Joining {chan} failed (+O)", "WARN")
|
||||||
|
if origin != "null":
|
||||||
|
sendmsg(f"{chan} is +O, and I'm not an operator.", origin)
|
||||||
elif code == 366:
|
elif code == 366:
|
||||||
log(f"Joining {chan} succeeded", server)
|
log(f"Joining {chan} succeeded", server)
|
||||||
if origin != "null":
|
if origin != "null":
|
||||||
|
|
Loading…
Reference in a new issue