summaryrefslogtreecommitdiff
path: root/src/core/handlers.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-05-08 00:27:26 +0200
committermathieui <mathieui@mathieui.net>2014-05-08 00:27:26 +0200
commit9786592b80f7ddcfefa967ea910f38ba3c02b0b4 (patch)
tree413e6cf2299f427cbc8e2c6b1ba0a8c4fdbd1f3b /src/core/handlers.py
parent51d552062615b8f6f4d5090d363ce3b27cbead40 (diff)
downloadpoezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.gz
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.bz2
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.tar.xz
poezio-9786592b80f7ddcfefa967ea910f38ba3c02b0b4.zip
Fix a hidden traceback on error message outside MUCs
Diffstat (limited to 'src/core/handlers.py')
-rw-r--r--src/core/handlers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index ce54ccab..4ec56a0b 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -1021,7 +1021,8 @@ def room_error(self, error, room_name):
"""
tab = self.get_tab_by_name(room_name)
error_message = self.get_error_message(error)
- tab.add_message(error_message, highlight=True, nickname='Error', nick_color=get_theme().COLOR_ERROR_MSG, typ=2)
+ tab.add_message(error_message, highlight=True, nickname='Error',
+ nick_color=get_theme().COLOR_ERROR_MSG, typ=2)
code = error['error']['code']
if code == '401':
msg = _('To provide a password in order to join the room, type "/join / password" (replace "password" by the real password)')