Mercurial > hg
comparison mcabber/src/commands.c @ 377:00809e3e327e
Add "/roster up" and "/roster down"
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 26 Jul 2005 18:18:30 +0100 |
parents | bd5638c21834 |
children | 39c5da51b387 d59e9b8c91d3 |
comparison
equal
deleted
inserted
replaced
376:d37d8d661115 | 377:00809e3e327e |
---|---|
113 compl_add_category_word(COMPL_STATUS, "away"); | 113 compl_add_category_word(COMPL_STATUS, "away"); |
114 | 114 |
115 // Roster category | 115 // Roster category |
116 compl_add_category_word(COMPL_ROSTER, "bottom"); | 116 compl_add_category_word(COMPL_ROSTER, "bottom"); |
117 compl_add_category_word(COMPL_ROSTER, "top"); | 117 compl_add_category_word(COMPL_ROSTER, "top"); |
118 compl_add_category_word(COMPL_ROSTER, "up"); | |
119 compl_add_category_word(COMPL_ROSTER, "down"); | |
118 compl_add_category_word(COMPL_ROSTER, "hide_offline"); | 120 compl_add_category_word(COMPL_ROSTER, "hide_offline"); |
119 compl_add_category_word(COMPL_ROSTER, "show_offline"); | 121 compl_add_category_word(COMPL_ROSTER, "show_offline"); |
120 compl_add_category_word(COMPL_ROSTER, "toggle_offline"); | 122 compl_add_category_word(COMPL_ROSTER, "toggle_offline"); |
121 compl_add_category_word(COMPL_ROSTER, "alternate"); | 123 compl_add_category_word(COMPL_ROSTER, "alternate"); |
122 compl_add_category_word(COMPL_ROSTER, "search"); | 124 compl_add_category_word(COMPL_ROSTER, "search"); |
364 scr_LogPrint(LPRINT_NORMAL, "What name or jid are you looking for?"); | 366 scr_LogPrint(LPRINT_NORMAL, "What name or jid are you looking for?"); |
365 return; | 367 return; |
366 } | 368 } |
367 scr_RosterSearch(string); | 369 scr_RosterSearch(string); |
368 update_roster = TRUE; | 370 update_roster = TRUE; |
371 } else if (!strcasecmp(arg, "up")) { | |
372 scr_RosterUp(); | |
373 } else if (!strcasecmp(arg, "down")) { | |
374 scr_RosterDown(); | |
369 } else | 375 } else |
370 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); | 376 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); |
371 } | 377 } |
372 | 378 |
373 static void do_status(char *arg) | 379 static void do_status(char *arg) |