diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-22 14:57:47 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-08-22 14:57:47 +0000 |
commit | aab22c794397a29d3a865c073702879a1e5a4645 (patch) | |
tree | df515dbaf722b71dbf764eb1a48c1c61cbe94f69 /src/connection.py | |
parent | 3ed25bdfce85e774b6992d32a112b69154d55f3e (diff) | |
download | poezio-aab22c794397a29d3a865c073702879a1e5a4645.tar.gz poezio-aab22c794397a29d3a865c073702879a1e5a4645.tar.bz2 poezio-aab22c794397a29d3a865c073702879a1e5a4645.tar.xz poezio-aab22c794397a29d3a865c073702879a1e5a4645.zip |
Themes working
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/connection.py b/src/connection.py index 0ac8be6a..83631da0 100644 --- a/src/connection.py +++ b/src/connection.py @@ -118,7 +118,11 @@ class Connection(threading.Thread): """ handles the error messages """ - room_name = stanza.getFrom().getStripped() + from_ = stanza.getFrom() + if not from_: + room_name = '' + else: + room_name = from_.getStripped() self.handler.emit('error-message', room=room_name, error=stanza.getTag('error'), msg=stanza.getError()) |