mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +01:00
Unix: Decode stream for the command line in sysuname.
This commit is contained in:
parent
4fc1e934c7
commit
ea17fe5c57
@ -361,7 +361,7 @@ class Unix(callbacks.Plugin):
|
||||
(out, err) = inst.communicate()
|
||||
inst.wait()
|
||||
lines = out.splitlines()
|
||||
lines = map(str.rstrip, lines)
|
||||
lines = [x.decode('utf8').rstrip() for x in lines]
|
||||
lines = filter(None, lines)
|
||||
irc.replies(lines, joiner=' ')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user