mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 20:41:18 -05:00
Unix: Fix IPv6 formating of @ping
command (#1595)
This commit is contained in:
parent
6f6f952338
commit
2aa1f916b0
@ -332,8 +332,8 @@ class Unix(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
response = result[0].decode('utf8').split("\n");
|
response = result[0].decode('utf8').split("\n");
|
||||||
if response[1]:
|
if response[1]:
|
||||||
irc.reply(' '.join(response[1].split()[3:5]).split(':')[0]
|
irc.reply(' '.join(response[1].split()[3:5]).split(': ')[0]
|
||||||
+ ': ' + ' '.join(response[-3:]))
|
+ ' ' + ' '.join(response[-3:]))
|
||||||
else:
|
else:
|
||||||
irc.reply(' '.join(response[0].split()[1:3])
|
irc.reply(' '.join(response[0].split()[1:3])
|
||||||
+ ': ' + ' '.join(response[-3:]))
|
+ ': ' + ' '.join(response[-3:]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user