relay

Log | Files | Refs

commit a5a98259657a975ca1b5f44d5858e8ca4b125c2c
parent 4a87ce81f0ec09e96aca91c860fb923a27b30394
Author: lickthecheese <lickthecheese@linuxmail.org>
Date:   Tue,  6 Oct 2020 15:23:53 -0400

dont send messages while not connected lol

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -36,7 +36,7 @@ class Server(BaseServer): async def line_send(self, line: Line): print(f"{self.name} > {line.format()}") async def bc(self,name,nick,msg): - if name == self.name: + if name == self.name or "chan" not in list(dir(self)): return await self.send(build("PRIVMSG",[self.chan,"<"+nick+"@"+name+"> "+msg]))