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