mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Ctcp: Fix regex for PING
The bot shouldn't treat a request such as "PING1234" as "PING 1234".
This commit is contained in:
parent
8a3ea3d5c8
commit
9186162b1a
@ -78,7 +78,7 @@ class Ctcp(callbacks.PluginRegexp):
|
|||||||
irc.reply(s, notice=True, private=True, to=msg.nick)
|
irc.reply(s, notice=True, private=True, to=msg.nick)
|
||||||
|
|
||||||
def ctcpPing(self, irc, msg, match):
|
def ctcpPing(self, irc, msg, match):
|
||||||
"^\x01PING ?(.*)\x01$"
|
"^\x01PING(?: (.+))?\x01$"
|
||||||
self.log.info('Received CTCP PING from %s', msg.prefix)
|
self.log.info('Received CTCP PING from %s', msg.prefix)
|
||||||
payload = match.group(1)
|
payload = match.group(1)
|
||||||
if payload:
|
if payload:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user