commit a065098578068132b2125d1abe9d833bd5f6c4f0
parent 1479da33bee81a41dded633c31b3f43d4ad8e101
Author: xfnw <xfnw@ttm.sh>
Date: Wed, 30 Dec 2020 18:07:42 -0500
oops, apperently bool(String) always returns true lol
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bot.py b/bot.py
@@ -53,7 +53,7 @@ class Server(BaseServer):
if text[:len(self.nickname)+2].lower() == f'{self.nickname}: '.lower():
args = text[len(self.nickname)+2:].split(' ')
if args[0] == 'connect' and len(args) > 4:
- await self.bot.add_server(args[1],ConnectionParams(NICKNAME,args[2],args[3],bool(args[4])))
+ await self.bot.add_server(args[1],ConnectionParams(NICKNAME,args[2],args[3],bool(int(args[4]))))
await self.send(build("PRIVMSG",[self.chan,"Connected to {} :3".format(args[1])]))
return
for i in self.bot.servers: