jid when destroying room is optional

This commit is contained in:
Yann Leboulanger 2007-10-17 15:16:26 +00:00
parent 19888fcd7b
commit c9c066f8e6
1 changed files with 9 additions and 8 deletions

View File

@ -1668,6 +1668,7 @@ class GroupchatControl(ChatControlBase):
if response == gtk.RESPONSE_OK: if response == gtk.RESPONSE_OK:
reason = instance.input_entry1.get_text().decode('utf-8') reason = instance.input_entry1.get_text().decode('utf-8')
jid = instance.input_entry2.get_text().decode('utf-8') jid = instance.input_entry2.get_text().decode('utf-8')
if jid:
# Test jid # Test jid
try: try:
jid = helpers.parse_jid(jid) jid = helpers.parse_jid(jid)