comparison mcabber/src/commands.c @ 707:b26a0bde4cdb

Add /roster hide|show|toggle
author Mikael Berthe <mikael@lilotux.net>
date Tue, 21 Feb 2006 22:57:49 +0100
parents ee03b56b93ee
children 1877838d3c27
comparison
equal deleted inserted replaced
706:934fddc99592 707:b26a0bde4cdb
129 // Roster category 129 // Roster category
130 compl_add_category_word(COMPL_ROSTER, "bottom"); 130 compl_add_category_word(COMPL_ROSTER, "bottom");
131 compl_add_category_word(COMPL_ROSTER, "top"); 131 compl_add_category_word(COMPL_ROSTER, "top");
132 compl_add_category_word(COMPL_ROSTER, "up"); 132 compl_add_category_word(COMPL_ROSTER, "up");
133 compl_add_category_word(COMPL_ROSTER, "down"); 133 compl_add_category_word(COMPL_ROSTER, "down");
134 compl_add_category_word(COMPL_ROSTER, "hide");
135 compl_add_category_word(COMPL_ROSTER, "show");
136 compl_add_category_word(COMPL_ROSTER, "toggle");
134 compl_add_category_word(COMPL_ROSTER, "hide_offline"); 137 compl_add_category_word(COMPL_ROSTER, "hide_offline");
135 compl_add_category_word(COMPL_ROSTER, "show_offline"); 138 compl_add_category_word(COMPL_ROSTER, "show_offline");
136 compl_add_category_word(COMPL_ROSTER, "toggle_offline"); 139 compl_add_category_word(COMPL_ROSTER, "toggle_offline");
137 compl_add_category_word(COMPL_ROSTER, "alternate"); 140 compl_add_category_word(COMPL_ROSTER, "alternate");
138 compl_add_category_word(COMPL_ROSTER, "search"); 141 compl_add_category_word(COMPL_ROSTER, "search");
389 scr_RosterTop(); 392 scr_RosterTop();
390 update_roster = TRUE; 393 update_roster = TRUE;
391 } else if (!strcasecmp(arg, "bottom")) { 394 } else if (!strcasecmp(arg, "bottom")) {
392 scr_RosterBottom(); 395 scr_RosterBottom();
393 update_roster = TRUE; 396 update_roster = TRUE;
397 } else if (!strcasecmp(arg, "hide")) {
398 scr_RosterVisibility(0);
399 } else if (!strcasecmp(arg, "show")) {
400 scr_RosterVisibility(1);
401 } else if (!strcasecmp(arg, "toggle")) {
402 scr_RosterVisibility(-1);
394 } else if (!strcasecmp(arg, "hide_offline")) { 403 } else if (!strcasecmp(arg, "hide_offline")) {
395 buddylist_set_hide_offline_buddies(TRUE); 404 buddylist_set_hide_offline_buddies(TRUE);
396 if (current_buddy) 405 if (current_buddy)
397 buddylist_build(); 406 buddylist_build();
398 update_roster = TRUE; 407 update_roster = TRUE;