From 6f8b1ac7e95087278e43aa7f3daabfb2a4045487 Mon Sep 17 00:00:00 2001 From: wr34k Date: Fri, 29 Jun 2018 14:26:42 +0200 Subject: [PATCH] Removed unused vars, clearing code formatting --- fighter.py | 1 + irc.py | 39 +++++++++++++++++---------------------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/fighter.py b/fighter.py index 1bb41c0..701252f 100644 --- a/fighter.py +++ b/fighter.py @@ -18,5 +18,6 @@ class Fighter(object): self.first_time_lowhp = True + # Will be used once PALMARES is implemented self.wins = 0 self.looses = 0 diff --git a/irc.py b/irc.py index e321882..e027669 100644 --- a/irc.py +++ b/irc.py @@ -28,35 +28,30 @@ sys.dont_write_bytecode = True class Irc(object): def __init__(self): - self.sock = None - self.lag=False + self.sock = None + self.lag = False - self.last_cmd={} - self.flood_flag={} - self.flood_count={} + self.last_cmd = {} + self.flood_flag = {} + self.flood_count = {} + self.timeouts = {} - self.mirc = MIRCFormat() + self.mirc = MIRCFormat() + self.log = Log(DEBUG) + self.cmds = IrcCommands(self) - self.optkey = optkey + self.server = server + self.port = port + self.ssl = use_ssl - self.log = Log(DEBUG) + self.nick = nickname + self.user = username + self.real = realname - self.server = server - self.port = port - self.ssl = use_ssl + self.optkey = optkey - self.nick = nickname - self.user = username - self.real = realname + self.channel,self.chankey = channel - self.channel, self.chankey = channel - - self.nameslists = {} - self.nameslistFlag = {} - - self.cmds = IrcCommands(self) - - self.timeouts = {} def connect(self): try: