comparison mcabber/src/commands.c @ 519:5c338d31de56

Show current global status message in "/status"
author Mikael Berthe <mikael@lilotux.net>
date Mon, 14 Nov 2005 18:47:08 +0100
parents 5a2132ba2220
children 2f714bd701a1
comparison
equal deleted inserted replaced
518:9480a76471b6 519:5c338d31de56
450 } 450 }
451 451
452 static void do_status(char *arg) 452 static void do_status(char *arg)
453 { 453 {
454 if (!arg || (!*arg)) { 454 if (!arg || (!*arg)) {
455 scr_LogPrint(LPRINT_NORMAL, "Your status is: %c", 455 const char *sm = jb_getstatusmsg();
456 imstatus2char[jb_getstatus()]); 456 scr_LogPrint(LPRINT_NORMAL, "Your status is: [%c] %s",
457 imstatus2char[jb_getstatus()],
458 (sm ? sm : ""));
457 return; 459 return;
458 } 460 }
459 setstatus(NULL, arg); 461 setstatus(NULL, arg);
460 } 462 }
461 463