Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 677:633a0522bd37
Using "/status invisible -" did not clear the status message
Thanks to pmw for the report.
Now the general status message is updated even when the requested status
is "invisible".
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 28 Jan 2006 11:07:02 +0100 |
parents | e61aa455c61b |
children | 8dc602a246a4 |
comparison
equal
deleted
inserted
replaced
676:80d4959422ca | 677:633a0522bd37 |
---|---|
460 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); | 460 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); |
461 free_arg_lst(paramlst); | 461 free_arg_lst(paramlst); |
462 return; | 462 return; |
463 } | 463 } |
464 | 464 |
465 // Use provided message, unless requested status is "invisible" | 465 // Use provided message |
466 if (msg && st != invisible) { | 466 if (msg && !*msg) { |
467 if (!*msg) msg = NULL; | |
468 } else | |
469 msg = NULL; | 467 msg = NULL; |
468 } | |
470 | 469 |
471 // If a recipient is specified, let's don't use default status messages | 470 // If a recipient is specified, let's don't use default status messages |
472 if (recipient && !msg) | 471 if (recipient && !msg) |
473 msg = ""; | 472 msg = ""; |
474 | 473 |