nickname can contain '/'
This commit is contained in:
parent
98c8af1d16
commit
2563414ccd
1 changed files with 3 additions and 3 deletions
|
@ -376,7 +376,7 @@ class Interface:
|
||||||
def handle_event_msgerror(self, account, array):
|
def handle_event_msgerror(self, account, array):
|
||||||
#('MSGERROR', account, (jid, error_code, error_msg, msg, time))
|
#('MSGERROR', account, (jid, error_code, error_msg, msg, time))
|
||||||
fjid = array[0]
|
fjid = array[0]
|
||||||
jids = fjid.split('/')
|
jids = fjid.split('/', 1)
|
||||||
jid = jids[0]
|
jid = jids[0]
|
||||||
gcs = self.windows[account]['gc']
|
gcs = self.windows[account]['gc']
|
||||||
if jid in gcs:
|
if jid in gcs:
|
||||||
|
@ -530,7 +530,7 @@ class Interface:
|
||||||
|
|
||||||
def handle_event_gc_msg(self, account, array):
|
def handle_event_gc_msg(self, account, array):
|
||||||
#('GC_MSG', account, (jid, msg, time))
|
#('GC_MSG', account, (jid, msg, time))
|
||||||
jids = array[0].split('/')
|
jids = array[0].split('/', 1)
|
||||||
jid = jids[0]
|
jid = jids[0]
|
||||||
if not self.windows[account]['gc'].has_key(jid):
|
if not self.windows[account]['gc'].has_key(jid):
|
||||||
return
|
return
|
||||||
|
@ -545,7 +545,7 @@ class Interface:
|
||||||
|
|
||||||
def handle_event_gc_subject(self, account, array):
|
def handle_event_gc_subject(self, account, array):
|
||||||
#('GC_SUBJECT', account, (jid, subject))
|
#('GC_SUBJECT', account, (jid, subject))
|
||||||
jids = array[0].split('/')
|
jids = array[0].split('/', 1)
|
||||||
jid = jids[0]
|
jid = jids[0]
|
||||||
if not self.windows[account]['gc'].has_key(jid):
|
if not self.windows[account]['gc'].has_key(jid):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue