Mercurial > hg
comparison mcabber/src/commands.c @ 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 | 5c338d31de56 |
children | ffdfddd351b8 |
comparison
equal
deleted
inserted
replaced
527:d721b3502a77 | 528:2f714bd701a1 |
---|---|
438 else { | 438 else { |
439 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); | 439 scr_LogPrint(LPRINT_NORMAL, "Unrecognized status!"); |
440 return; | 440 return; |
441 } | 441 } |
442 | 442 |
443 // Use provided message, unless requested status is "invisible" | |
443 if (msg && st != invisible) { | 444 if (msg && st != invisible) { |
444 for (msg++ ; *msg && *msg == ' ' ; msg++) ; | 445 for (msg++ ; *msg && *msg == ' ' ; msg++) ; |
445 if (!*msg) msg = NULL; | 446 if (!*msg) msg = NULL; |
446 } else | 447 } else |
447 msg = NULL; | 448 msg = NULL; |
449 | |
450 // If a recipient is specified, let's don't use default status messages | |
451 if (recipient && !msg) | |
452 msg = ""; | |
448 | 453 |
449 jb_setstatus(st, recipient, msg); | 454 jb_setstatus(st, recipient, msg); |
450 } | 455 } |
451 | 456 |
452 static void do_status(char *arg) | 457 static void do_status(char *arg) |