Unix: Fix IPv6 formating of @ping command (#1595)

This commit is contained in:
Codimp 2024-10-04 20:00:07 +02:00 committed by GitHub
parent 6f6f952338
commit 2aa1f916b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -332,8 +332,8 @@ class Unix(callbacks.Plugin):
else:
response = result[0].decode('utf8').split("\n");
if response[1]:
irc.reply(' '.join(response[1].split()[3:5]).split(':')[0]
+ ': ' + ' '.join(response[-3:]))
irc.reply(' '.join(response[1].split()[3:5]).split(': ')[0]
+ ' ' + ' '.join(response[-3:]))
else:
irc.reply(' '.join(response[0].split()[1:3])
+ ': ' + ' '.join(response[-3:]))