diff options
author | lassulus <lassulus@googlemail.com> | 2014-03-15 01:17:29 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-03-15 01:17:29 +0100 |
commit | 94751bf732ad1268e6885db8bd03b054a81f9a20 (patch) | |
tree | 2bfda18323f2cef238e37d4ee524309aadd0d27a | |
parent | a9633ea16310f99c7a39dcd8c4a1c7bb05326135 (diff) |
ircasy: fix nickinuse
-rw-r--r-- | Reaktor/IRC/ircasy.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py index 4dfff390..5a07e8fc 100644 --- a/Reaktor/IRC/ircasy.py +++ b/Reaktor/IRC/ircasy.py @@ -178,7 +178,8 @@ class asybot(asychat): def on_nickinuse(self, prefix, command, params, rest): regex = re.search('(\d+)$', self.nickname) if regex: - theint = int(regex.group(0)) - self.nickname = self.nickname.strip(theint) + str(theint + 1) - else self.nickname = self.nickname + '0' + theint = int(regex.group(0)) + self.nickname = self.nickname.strip(theint) + str(theint + 1) + else: + self.nickname = self.nickname + '0' self.handle_connect() |