Mercurial > hg
changeset 528:2f714bd701a1
Do not use default status messages with /status_to
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 21 Nov 2005 00:05:17 +0100 |
parents | d721b3502a77 |
children | 4c64927a4183 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); }