fix TB: get room_jid var before using it
This commit is contained in:
parent
4f3ee8ba67
commit
3b52e0d73b
1 changed files with 1 additions and 1 deletions
|
@ -1690,11 +1690,11 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
|||
if ptype == 'error':
|
||||
errmsg = prs.getError()
|
||||
errcode = prs.getErrorCode()
|
||||
room_jid, nick = gajim.get_room_and_nick_from_fjid(who)
|
||||
if errcode == '502': # Internal Timeout:
|
||||
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource,
|
||||
prio, keyID, timestamp, None))
|
||||
elif errcode == '401': # password required to join
|
||||
room_jid, nick = gajim.get_room_and_nick_from_fjid(who)
|
||||
self.dispatch('GC_PASSWORD_REQUIRED', (room_jid, nick))
|
||||
elif errcode == '403': # we are banned
|
||||
self.dispatch('ERROR', (_('Unable to join group chat'),
|
||||
|
|
Loading…
Add table
Reference in a new issue