Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 1422:3cd104b41f26
Add "/status message" (to only change the status description string)
(Also works for /status_to)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 17 Feb 2008 19:28:06 +0100 |
parents | f69028ca6296 |
children | 757ebe4df0b9 |
comparison
equal
deleted
inserted
replaced
1421:0b8701386bde | 1422:3cd104b41f26 |
---|---|
165 compl_add_category_word(COMPL_STATUS, "free"); | 165 compl_add_category_word(COMPL_STATUS, "free"); |
166 compl_add_category_word(COMPL_STATUS, "dnd"); | 166 compl_add_category_word(COMPL_STATUS, "dnd"); |
167 compl_add_category_word(COMPL_STATUS, "notavail"); | 167 compl_add_category_word(COMPL_STATUS, "notavail"); |
168 compl_add_category_word(COMPL_STATUS, "away"); | 168 compl_add_category_word(COMPL_STATUS, "away"); |
169 compl_add_category_word(COMPL_STATUS, "offline"); | 169 compl_add_category_word(COMPL_STATUS, "offline"); |
170 compl_add_category_word(COMPL_STATUS, "message"); | |
170 | 171 |
171 // Roster category | 172 // Roster category |
172 compl_add_category_word(COMPL_ROSTER, "bottom"); | 173 compl_add_category_word(COMPL_ROSTER, "bottom"); |
173 compl_add_category_word(COMPL_ROSTER, "top"); | 174 compl_add_category_word(COMPL_ROSTER, "top"); |
174 compl_add_category_word(COMPL_ROSTER, "up"); | 175 compl_add_category_word(COMPL_ROSTER, "up"); |
814 else if (!strcasecmp(status, IMSTATUS_AWAY)) st = away; | 815 else if (!strcasecmp(status, IMSTATUS_AWAY)) st = away; |
815 else if (!strcasecmp(status, IMSTATUS_INVISIBLE)) st = invisible; | 816 else if (!strcasecmp(status, IMSTATUS_INVISIBLE)) st = invisible; |
816 else if (!strcasecmp(status, IMSTATUS_DONOTDISTURB)) st = dontdisturb; | 817 else if (!strcasecmp(status, IMSTATUS_DONOTDISTURB)) st = dontdisturb; |
817 else if (!strcasecmp(status, IMSTATUS_NOTAVAILABLE)) st = notavail; | 818 else if (!strcasecmp(status, IMSTATUS_NOTAVAILABLE)) st = notavail; |
818 else if (!strcasecmp(status, IMSTATUS_FREE4CHAT)) st = freeforchat; | 819 else if (!strcasecmp(status, IMSTATUS_FREE4CHAT)) st = freeforchat; |
820 else if (!strcasecmp(status, "message")) st = jb_getstatus(); | |
819 else { | 821 else { |
820 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); | 822 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); |
821 free_arg_lst(paramlst); | 823 free_arg_lst(paramlst); |
822 return; | 824 return; |
823 } | 825 } |