get session from event only for chat and normal event. in other events there is no session

This commit is contained in:
Yann Leboulanger 2007-08-30 21:43:49 +00:00
parent 07e52866d5
commit f71df1b688
1 changed files with 2 additions and 1 deletions

View File

@ -4265,7 +4265,8 @@ class RosterWindow:
child_iter = model.iter_next(child_iter)
session = None
if first_ev:
session = first_ev.parameters[8]
if first_ev.type_ in ('chat', 'normal'):
session = first_ev.parameters[8]
fjid = jid
if resource:
fjid += '/' + resource