diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-12 20:43:42 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-12 20:43:51 +0200 |
commit | fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7 (patch) | |
tree | 43c1e991617df5d981f2c9a704ae0732818c0a16 /poezio/multiuserchat.py | |
parent | e6510792b4d4dcb0d9e7746fff0dd891cba33e3a (diff) | |
download | poezio-fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7.tar.gz poezio-fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7.tar.bz2 poezio-fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7.tar.xz poezio-fc1eca7ac39bfc0dc82b2809b19b3d1c7b64a2c7.zip |
fix: remove all remaining safejids (fix #3457)
Diffstat (limited to 'poezio/multiuserchat.py')
-rw-r--r-- | poezio/multiuserchat.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/multiuserchat.py b/poezio/multiuserchat.py index 4f63971a..466a3c08 100644 --- a/poezio/multiuserchat.py +++ b/poezio/multiuserchat.py @@ -19,7 +19,6 @@ from typing import ( TYPE_CHECKING, ) -from poezio.common import safeJID from slixmpp import ( JID, ClientXMPP, @@ -45,7 +44,7 @@ def change_show( """ Change our 'Show' """ - jid = safeJID(jid) + jid = JID(jid) pres = xmpp.make_presence(pto='%s/%s' % (jid, own_nick)) if show: # if show is None, don't put a <show /> tag. It means "available" pres['type'] = show @@ -66,7 +65,7 @@ def change_nick( """ xmpp = core.xmpp presence = xmpp.make_presence( - pshow=show, pstatus=status, pto=safeJID('%s/%s' % (jid, nick))) + pshow=show, pstatus=status, pto=JID('%s/%s' % (jid, nick))) core.events.trigger('changing_nick', presence) presence.send() @@ -122,7 +121,7 @@ def leave_groupchat( """ Leave the groupchat """ - jid = safeJID(jid) + jid = JID(jid) try: xmpp.plugin['xep_0045'].leave_muc(jid, own_nick, msg) except KeyError: |