Mercurial > hg
comparison mcabber/src/commands.c @ 290:f63839a4cb35
Add /roster toggle_offline
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 08 Jul 2005 22:32:50 +0100 |
parents | 1eea0fa0955e |
children | 35cda94e570d 12f919be3da5 |
comparison
equal
deleted
inserted
replaced
289:72fa52203651 | 290:f63839a4cb35 |
---|---|
111 // Roster category | 111 // Roster category |
112 compl_add_category_word(COMPL_ROSTER, "bottom"); | 112 compl_add_category_word(COMPL_ROSTER, "bottom"); |
113 compl_add_category_word(COMPL_ROSTER, "top"); | 113 compl_add_category_word(COMPL_ROSTER, "top"); |
114 compl_add_category_word(COMPL_ROSTER, "hide_offline"); | 114 compl_add_category_word(COMPL_ROSTER, "hide_offline"); |
115 compl_add_category_word(COMPL_ROSTER, "show_offline"); | 115 compl_add_category_word(COMPL_ROSTER, "show_offline"); |
116 compl_add_category_word(COMPL_ROSTER, "toggle_offline"); | |
116 compl_add_category_word(COMPL_ROSTER, "search"); | 117 compl_add_category_word(COMPL_ROSTER, "search"); |
117 compl_add_category_word(COMPL_ROSTER, "unread_first"); | 118 compl_add_category_word(COMPL_ROSTER, "unread_first"); |
118 compl_add_category_word(COMPL_ROSTER, "unread_next"); | 119 compl_add_category_word(COMPL_ROSTER, "unread_next"); |
119 | 120 |
120 // Roster category | 121 // Roster category |
330 if (current_buddy) | 331 if (current_buddy) |
331 buddylist_build(); | 332 buddylist_build(); |
332 update_roster = TRUE; | 333 update_roster = TRUE; |
333 } else if (!strcasecmp(arg, "show_offline")) { | 334 } else if (!strcasecmp(arg, "show_offline")) { |
334 buddylist_set_hide_offline_buddies(FALSE); | 335 buddylist_set_hide_offline_buddies(FALSE); |
336 buddylist_build(); | |
337 update_roster = TRUE; | |
338 } else if (!strcasecmp(arg, "toggle_offline")) { | |
339 buddylist_set_hide_offline_buddies(-1); | |
335 buddylist_build(); | 340 buddylist_build(); |
336 update_roster = TRUE; | 341 update_roster = TRUE; |
337 } else if (!strcasecmp(arg, "unread_first")) { | 342 } else if (!strcasecmp(arg, "unread_first")) { |
338 scr_RosterUnreadMessage(0); | 343 scr_RosterUnreadMessage(0); |
339 } else if (!strcasecmp(arg, "unread_next")) { | 344 } else if (!strcasecmp(arg, "unread_next")) { |