# HG changeset patch # User Mikael Berthe # Date 1132527917 -3600 # Node ID 2f714bd701a1afe0608cbd87e4007a972c2593c9 # Parent d721b3502a7761902ac3ea2ed076b81428c9dbff Do not use default status messages with /status_to diff -r d721b3502a77 -r 2f714bd701a1 mcabber/src/commands.c --- 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); }