mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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:
|
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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user