summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui.py6
-rw-r--r--src/theme.py3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gui.py b/src/gui.py
index 3385d971..51101a3e 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -195,13 +195,13 @@ class Gui(object):
"""
from_nick = presence['from'].resource
from_room = presence['from'].bare
- room = self.get_room_by_name(from_room)
+ room = self.get_room_by_name(from_room)
code = presence.find('{jabber:client}status')
status_codes = set([s.attrib['code'] for s in presence.findall('{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}status')])
# Check if it's not an error presence.
if presence['type'] == 'error':
return self.room_error(presence, from_room)
- if not room:
+ if not room:
return
msg = None
affiliation = presence['muc']['affiliation']
@@ -645,7 +645,7 @@ class Gui(object):
room_from = message.getMucroom()
if nick_from == room_from:
nick_from = None
- room = self.get_room_by_name(room_from)
+ room = self.get_room_by_name(room_from)
if (self.ignores.has_key(room_from)) and (nick_from in self.ignores[room_from]):
return
room = self.get_room_by_name(room_from)
diff --git a/src/theme.py b/src/theme.py
index b51371fa..862a8655 100644
--- a/src/theme.py
+++ b/src/theme.py
@@ -162,6 +162,3 @@ if __name__ == '__main__':
s.refresh()
s.getch()
s.endwin()
-
-
-