author | Mikael Berthe <mikael@lilotux.net> |
Mon, 21 Nov 2005 00:05:17 +0100 | |
changeset 528 | 2f714bd701a1 |
parent 527 | d721b3502a77 |
child 529 | 4c64927a4183 |
--- a/mcabber/src/commands.c Sun Nov 20 23:30:31 2005 +0100 +++ b/mcabber/src/commands.c Mon Nov 21 00:05:17 2005 +0100 @@ -440,12 +440,17 @@ return; } + // Use provided message, unless requested status is "invisible" if (msg && st != invisible) { for (msg++ ; *msg && *msg == ' ' ; msg++) ; if (!*msg) msg = NULL; } else msg = NULL; + // If a recipient is specified, let's don't use default status messages + if (recipient && !msg) + msg = ""; + jb_setstatus(st, recipient, msg); }