Mercurial > hg
changeset 1529:890a703197cf
Slightly improve last changeset
Keep silent if the topic hasn't been set...
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 04 Oct 2008 13:07:18 +0200 |
parents | 4b4b3948420c |
children | 29c505d43b3e |
files | mcabber/src/jabglue.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Sat Oct 04 13:03:42 2008 +0200 +++ b/mcabber/src/jabglue.c Sat Oct 04 13:07:18 2008 +0200 @@ -2620,10 +2620,8 @@ // Display inside the room window if (r == s) { // No specific resource (this is certainly history) - if (subj) + if (subj && *subj) mbuf = g_strdup_printf("The topic has been set to: %s", subj); - else - mbuf = g_strdup_printf("The topic has been cleared"); } else { if (subj) mbuf = g_strdup_printf("%s has set the topic to: %s", r, subj);