Mercurial > pidgin
diff libpurple/protocols/silc10/util.c @ 22339:b630d1d4d64f
chomp chomp chomp chomp chomp chomp chomp chomp chomp chomp
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 26 Feb 2008 14:11:59 +0000 |
parents | 665e04562de0 |
children | e0bcb8cfda74 |
line wrap: on
line diff
--- a/libpurple/protocols/silc10/util.c Tue Feb 26 14:02:06 2008 +0000 +++ b/libpurple/protocols/silc10/util.c Tue Feb 26 14:11:59 2008 +0000 @@ -432,6 +432,7 @@ strcat(buf, "[rejects watching] "); if (mode & SILC_UMODE_BLOCK_INVITE) strcat(buf, "[blocks invites] "); + g_strchomp(buf); } void silcpurple_get_chmode_string(SilcUInt32 mode, char *buf, @@ -460,6 +461,7 @@ strcat(buf, "[users silenced] "); if (mode & SILC_CHANNEL_MODE_SILENCE_OPERS) strcat(buf, "[operators silenced] "); + g_strchomp(buf); } void silcpurple_get_chumode_string(SilcUInt32 mode, char *buf, @@ -478,6 +480,7 @@ strcat(buf, "[blocks robot messages] "); if (mode & SILC_CHANNEL_UMODE_QUIET) strcat(buf, "[quieted] "); + g_strchomp(buf); } void @@ -534,6 +537,7 @@ if (strlen(s->str)) { *moodstr = s->str; g_string_free(s, FALSE); + g_strchomp(*moodstr); } else g_string_free(s, TRUE); @@ -563,6 +567,7 @@ if (strlen(s->str)) { *contactstr = s->str; g_string_free(s, FALSE); + g_strchomp(*contactstr); } else g_string_free(s, TRUE);