changeset 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 0b8701386bde
children 757ebe4df0b9
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Feb 17 19:15:50 2008 +0100
+++ b/mcabber/src/commands.c	Sun Feb 17 19:28:06 2008 +0100
@@ -167,6 +167,7 @@
   compl_add_category_word(COMPL_STATUS, "notavail");
   compl_add_category_word(COMPL_STATUS, "away");
   compl_add_category_word(COMPL_STATUS, "offline");
+  compl_add_category_word(COMPL_STATUS, "message");
 
   // Roster category
   compl_add_category_word(COMPL_ROSTER, "bottom");
@@ -816,6 +817,7 @@
   else if (!strcasecmp(status, IMSTATUS_DONOTDISTURB))  st = dontdisturb;
   else if (!strcasecmp(status, IMSTATUS_NOTAVAILABLE))  st = notavail;
   else if (!strcasecmp(status, IMSTATUS_FREE4CHAT))     st = freeforchat;
+  else if (!strcasecmp(status, "message"))              st = jb_getstatus();
   else {
     scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!");
     free_arg_lst(paramlst);