Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 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 | c4ed9e145279 |
comparison
equal
deleted
inserted
replaced
1528:4b4b3948420c | 1529:890a703197cf |
---|---|
2618 if (roombuddy) | 2618 if (roombuddy) |
2619 buddy_settopic(roombuddy->data, subj); | 2619 buddy_settopic(roombuddy->data, subj); |
2620 // Display inside the room window | 2620 // Display inside the room window |
2621 if (r == s) { | 2621 if (r == s) { |
2622 // No specific resource (this is certainly history) | 2622 // No specific resource (this is certainly history) |
2623 if (subj) | 2623 if (subj && *subj) |
2624 mbuf = g_strdup_printf("The topic has been set to: %s", subj); | 2624 mbuf = g_strdup_printf("The topic has been set to: %s", subj); |
2625 else | |
2626 mbuf = g_strdup_printf("The topic has been cleared"); | |
2627 } else { | 2625 } else { |
2628 if (subj) | 2626 if (subj) |
2629 mbuf = g_strdup_printf("%s has set the topic to: %s", r, subj); | 2627 mbuf = g_strdup_printf("%s has set the topic to: %s", r, subj); |
2630 else | 2628 else |
2631 mbuf = g_strdup_printf("%s has cleared the topic", r); | 2629 mbuf = g_strdup_printf("%s has cleared the topic", r); |