From 91558b7f06668e25b5f1dc8b19ee287779d5b10a Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 19 Jul 2016 23:42:48 +0100 Subject: [PATCH] Fixed clients.py for python3 --- clients.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clients.py b/clients.py index eb0352b..46b9ffb 100644 --- a/clients.py +++ b/clients.py @@ -63,18 +63,21 @@ def _sv_send(muc, occupant): ET.SubElement(iq, "query", { "xmlns": "jabber:iq:version" }) + iq_id_count = iq_id_count + 1 - prof.send_stanza(ET.tostring(iq)) + prof.send_stanza(ET.tostring(iq).decode("utf-8")) def _cmd_clients(): muc = prof.get_current_muc() if muc == None: + prof.cons_show("Command only valid in chat rooms.") return occupants = prof.get_current_occupants() if occupants == None or len(occupants) == 0: + prof.cons_show("No occupants for /clients command.") return nick = prof.get_current_nick()