primitivus (chat): fixed a crash when page-up was pressed on room contacts list

This commit is contained in:
Goffi 2016-07-01 00:00:12 +02:00
commit bd46cb609e

View file

@ -157,6 +157,8 @@ class OccupantWidget(urwid.WidgetWrap):
super(OccupantWidget, self).__init__(urwid.Text(markup))
def __eq__(self, other):
if other is None:
return False
return self.occupant_data.nick == other.occupant_data.nick
def __lt__(self, other):