fix finding room jids in database. Fixes #4576, #4578

This commit is contained in:
Yann Leboulanger 2008-12-12 17:51:22 +00:00
parent 5f6c7d858f
commit 8d18e48af4
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class Logger:
and after that all okay''' and after that all okay'''
if jid.find('/') > -1: if jid.find('/') > -1:
possible_room_jid = jid.split('/', 1)[1] possible_room_jid = jid.split('/', 1)[0]
return self.jid_is_room_jid(possible_room_jid) return self.jid_is_room_jid(possible_room_jid)
else: else:
# it's not a full jid, so it's not a pm one # it's not a full jid, so it's not a pm one