sendmsg -> msg

This commit is contained in:
Firepup Sixfifty 2023-11-07 22:23:40 -06:00
parent b1648c7563
commit 1f4adf21cc
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

4
bot.py
View file

@ -82,11 +82,11 @@ class bot:
return return
if chan.startswith("0") or (chan == "#main" and lock): if chan.startswith("0") or (chan == "#main" and lock):
if origin != "null": if origin != "null":
self.sendmsg(f"Refusing to join channel {chan} (protected)", origin) self.msg(f"Refusing to join channel {chan} (protected)", origin)
return return
if chan in self.channels and lock: if chan in self.channels and lock:
if origin != "null": if origin != "null":
self.sendmsg(f"I'm already in {chan}.", origin) self.msg(f"I'm already in {chan}.", origin)
return return
self.send(f"JOIN {chan}\n") self.send(f"JOIN {chan}\n")
while True: while True: