mirror of
https://github.com/craigerl/aprsd.git
synced 2025-09-04 06:07:48 -04:00
fixed fortune. yet another unicode issue, tested in py3 and py2
This commit is contained in:
parent
c5517a7cb5
commit
2bebd83449
@ -813,6 +813,8 @@ def server(loglevel, quiet):
|
|||||||
LOG.debug("FORTUNE")
|
LOG.debug("FORTUNE")
|
||||||
process = subprocess.Popen(['/usr/games/fortune', '-s', '-n 60'], stdout=subprocess.PIPE)
|
process = subprocess.Popen(['/usr/games/fortune', '-s', '-n 60'], stdout=subprocess.PIPE)
|
||||||
reply = process.communicate()[0]
|
reply = process.communicate()[0]
|
||||||
|
#send_message(fromcall, reply.rstrip())
|
||||||
|
reply = reply.decode(errors='ignore')
|
||||||
send_message(fromcall, reply.rstrip())
|
send_message(fromcall, reply.rstrip())
|
||||||
|
|
||||||
# PING (p)
|
# PING (p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user