show better error message when sending message to a room where we are no more connected. fixes #3870

This commit is contained in:
Yann Leboulanger 2008-04-18 18:35:53 +00:00
parent ef97e91a1d
commit 0158db6001
1 changed files with 1 additions and 1 deletions

View File

@ -1675,7 +1675,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
msgtxt = decmsg
encrypted = True
if mtype == 'error':
error_msg = msg.getError()
error_msg = msg.getErrorMsg()
if not error_msg:
error_msg = msgtxt
msgtxt = None