zephyr-mirror: Fix bug in zsig splitting.

(imported from commit 26f9784d0771d148dcb92dc4b1fca9d501d3d8f4)
This commit is contained in:
Tim Abbott 2012-09-06 18:39:51 -04:00
parent 890420de49
commit 9696e12c45
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ for sub in subs_list.split():
print "Starting receive loop"
while True:
notice = zephyr.receive(block=True)
[zsig, body] = notice.message.split("\x00")
[zsig, body] = notice.message.split("\x00", 1)
sys.stdout.write("received a message on %s from %s..." % (notice.cls, notice.sender))
send_zephyr(cgi.escape(notice.sender), cgi.escape(notice.cls), cgi.escape(notice.instance), cgi.escape(body))
print "forwarded"