mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed grouping of regexp.
This commit is contained in:
parent
1ebfb82353
commit
9d20105689
@ -51,11 +51,10 @@ class FixRelayBot(irclib.IrcCallback):
|
||||
if m:
|
||||
#debug.printf('Regexp matched: %r, %r, %r' % m.groups())
|
||||
nick = m.group(1)
|
||||
network = m.group(2)
|
||||
host = random.random()*100
|
||||
newprefix = ircutils.joinHostmask(nick, nick, host)
|
||||
msg = ircmsgs.IrcMsg(command='PRIVMSG', prefix=newprefix,
|
||||
args=(msg.args[0], m.group(3)))
|
||||
args=(msg.args[0], m.group(2)))
|
||||
return msg
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user