wrong 404 error handling
after receiving this stanza:
\<presence from='129422257@icq.amessage.info' to='sef@njs.netlab.cz/Gajim' type='error'>\<error code='404' type='cancel'>\<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>\</error>\</presence>\<presence from='337773525@icq.amessage.info' to='sef@njs.netlab.cz/Gajim' type='error'>\<error code='404' type='cancel'>\<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>\</error>\</presence>\<presence from='icq.amessage.info/registered' to='sef@njs.netlab.cz/Gajim' type='error' id='5'>\<priority>5\</priority>\<x xmlns='vcard-temp:x:update'/>\<status>I'm available\</status>\<error code='404' type='cancel'>\<remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>\</error>\</presence>
I got 'Unable to join room' messages
nk replied:
in connection.py nkour does:
elif errcode == '404': # room does not exist
self.dispatch('ERROR', (_('Unable to join room'),
_('Such room does not exist.')))