aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-03-15 01:18:42 +0100
committerlassulus <lassulus@googlemail.com>2014-03-15 01:18:42 +0100
commit7b1e2aabb551b46bbb39daceb24a00294a22dfcb (patch)
tree43b98db792de105f50313e26c93fdd924c1ed5c9
parent9390ad6155e9883d524c3a5f21769b5d311d3850 (diff)
ircasy: more fix(drunk)
-rw-r--r--IRC/ircasy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRC/ircasy.py b/IRC/ircasy.py
index 5a07e8f..c62beee 100644
--- a/IRC/ircasy.py
+++ b/IRC/ircasy.py
@@ -176,7 +176,7 @@ class asybot(asychat):
pass
def on_nickinuse(self, prefix, command, params, rest):
- regex = re.search('(\d+)$', self.nickname)
+ regex = search('(\d+)$', self.nickname)
if regex:
theint = int(regex.group(0))
self.nickname = self.nickname.strip(theint) + str(theint + 1)