# HG changeset patch # User Stu Tomlinson # Date 1204035119 0 # Node ID b630d1d4d64f19faa96e8556c9e0958eee807756 # Parent 5fd8b4b4c6bd8ec20044a2ebf61977f52c529306 chomp chomp chomp chomp chomp chomp chomp chomp chomp chomp diff -r 5fd8b4b4c6bd -r b630d1d4d64f libpurple/protocols/silc/util.c --- a/libpurple/protocols/silc/util.c Tue Feb 26 14:02:06 2008 +0000 +++ b/libpurple/protocols/silc/util.c Tue Feb 26 14:11:59 2008 +0000 @@ -442,6 +442,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, @@ -470,6 +471,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, @@ -488,6 +490,7 @@ strcat(buf, "[blocks robot messages] "); if (mode & SILC_CHANNEL_UMODE_QUIET) strcat(buf, "[quieted] "); + g_strchomp(buf); } void @@ -544,6 +547,7 @@ if (strlen(s->str)) { *moodstr = s->str; g_string_free(s, FALSE); + g_strchomp(*moodstr); } else g_string_free(s, TRUE); @@ -573,6 +577,7 @@ if (strlen(s->str)) { *contactstr = s->str; g_string_free(s, FALSE); + g_strchomp(*contactstr); } else g_string_free(s, TRUE); diff -r 5fd8b4b4c6bd -r b630d1d4d64f libpurple/protocols/silc10/util.c --- 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);