Fixed grouping of regexp.

This commit is contained in:
Jeremy Fincher 2003-08-23 04:08:42 +00:00
parent 1ebfb82353
commit 9d20105689

View File

@ -51,11 +51,10 @@ class FixRelayBot(irclib.IrcCallback):
if m: if m:
#debug.printf('Regexp matched: %r, %r, %r' % m.groups()) #debug.printf('Regexp matched: %r, %r, %r' % m.groups())
nick = m.group(1) nick = m.group(1)
network = m.group(2)
host = random.random()*100 host = random.random()*100
newprefix = ircutils.joinHostmask(nick, nick, host) newprefix = ircutils.joinHostmask(nick, nick, host)
msg = ircmsgs.IrcMsg(command='PRIVMSG', prefix=newprefix, msg = ircmsgs.IrcMsg(command='PRIVMSG', prefix=newprefix,
args=(msg.args[0], m.group(3))) args=(msg.args[0], m.group(2)))
return msg return msg