summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-27 22:36:58 +0200
committermathieui <mathieui@mathieui.net>2012-04-27 22:36:58 +0200
commit7c8fe132eb306ccdd332acd263fbd0d6b7d09fc8 (patch)
tree11052e974428f9fde030e3f2781ad5cdfc667a75 /src
parent2957cded911a75bfae9e6818d3670efb1570e988 (diff)
downloadpoezio-7c8fe132eb306ccdd332acd263fbd0d6b7d09fc8.tar.gz
poezio-7c8fe132eb306ccdd332acd263fbd0d6b7d09fc8.tar.bz2
poezio-7c8fe132eb306ccdd332acd263fbd0d6b7d09fc8.tar.xz
poezio-7c8fe132eb306ccdd332acd263fbd0d6b7d09fc8.zip
Update the roster search functions
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tabs.py b/src/tabs.py
index e33b5a9a..300f52a9 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2187,18 +2187,18 @@ class RosterInfoTab(Tab):
return True
def set_roster_filter_slow(self, txt):
- roster._contact_filter = (jid_and_name_match_slow, txt)
+ roster.jids_filter = (jid_and_name_match_slow, txt)
self.roster_win.refresh(roster)
return False
def set_roster_filter(self, txt):
- roster._contact_filter = (jid_and_name_match, txt)
+ roster.contact_filter = (jid_and_name_match, txt)
self.roster_win.refresh(roster)
return False
def on_search_terminate(self, txt):
curses.curs_set(0)
- roster._contact_filter = None
+ roster.contact_filter = None
self.reset_help_message()
return False
@@ -2805,6 +2805,8 @@ def jid_and_name_match(contact, txt):
return True
if txt in JID(contact.bare_jid).user:
return True
+ if txt in contact.name:
+ return True
return False
def jid_and_name_match_slow(contact, txt):