From db27041571b6c4b2cf9b7a9567702d8dacba5e74 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 16 Oct 2010 18:47:39 +0000 Subject: remove the warnings caused by the new version of sleekxmpp, and update the connection method (changed also in sleek) --- src/multiuserchat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/multiuserchat.py') diff --git a/src/multiuserchat.py b/src/multiuserchat.py index 2e04c609..d1941a03 100644 --- a/src/multiuserchat.py +++ b/src/multiuserchat.py @@ -49,7 +49,7 @@ def change_show(xmpp, jid, own_nick, show, status): Change our 'Show' """ pres = xmpp.makePresence(pto='%s/%s' % (jid, own_nick), - pfrom=xmpp.fulljid) + pfrom=xmpp.boundjid.full) if show: # if show is None, don't put a tag. It means "online" pres['type'] = show if status: @@ -64,7 +64,7 @@ def change_subject(xmpp, jid, subject): msg = xmpp.makeMessage(jid) msg['type'] = 'groupchat' msg['subject'] = subject - msg['from'] = xmpp.jid + msg['from'] = xmpp.boundjid.bare msg.send() def change_nick(xmpp, jid, nick): @@ -72,7 +72,7 @@ def change_nick(xmpp, jid, nick): Change our own nick in a room """ xmpp.makePresence(pto='%s/%s' % (jid, nick), - pfrom=xmpp.jid).send() + pfrom=xmpp.boundjid.bare).send() def join_groupchat(xmpp, jid, nick, password=None): """ -- cgit v1.2.3