mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +01:00
ircs2s_common: fix handling when failing to extract kill reason
This commit is contained in:
parent
7c0deaa684
commit
5c3306bcff
@ -522,8 +522,8 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
|||||||
# Get the reason, which is enclosed in brackets.
|
# Get the reason, which is enclosed in brackets.
|
||||||
killmsg = ' '.join(args[1].split(" ")[1:])[1:-1]
|
killmsg = ' '.join(args[1].split(" ")[1:])[1:-1]
|
||||||
if not killmsg:
|
if not killmsg:
|
||||||
log.warning('(%s) Failed to extract kill reason: %r', irc.name, args)
|
log.warning('(%s) Failed to extract kill reason: %r', self.name, args)
|
||||||
killmsg = '<No reason given>'
|
killmsg = args[1]
|
||||||
else:
|
else:
|
||||||
# We already have a preformatted kill, so just pass it on as is.
|
# We already have a preformatted kill, so just pass it on as is.
|
||||||
# XXX: this does create a convoluted kill string if we want to forward kills
|
# XXX: this does create a convoluted kill string if we want to forward kills
|
||||||
|
Loading…
Reference in New Issue
Block a user