work with xmpp: too

This commit is contained in:
Nikos Kouremenos 2005-09-08 10:24:33 +00:00
parent 5c0797ae71
commit 7e808fbb56
1 changed files with 2 additions and 0 deletions

View File

@ -198,6 +198,8 @@ class SignalObject(DbusPrototype):
return None
if jid.startswith('xmpp://'):
jid = jid[7:] # len('xmpp://') = 7
elif jid.startswith('xmpp:'):
jid = jid[5:] # len('xmpp:') = 5
if account:
accounts = [account]