diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-03 01:43:07 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-03 01:43:07 +0000 |
commit | 4c82e70fb54415b0627397eac4a8406afde0e1d9 (patch) | |
tree | 19387c3abacd383bd12c3531392233224ef74d68 /src | |
parent | f436a34f61758b05652206cca99a072a40f0030e (diff) | |
download | irssi-4c82e70fb54415b0627397eac4a8406afde0e1d9.zip |
Remove trailing spaces from all modes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@930 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/irc/fe-events-numeric.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index 4d57d8cb..e52453f0 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -45,7 +45,8 @@ static void event_user_mode(const char *data, IRC_SERVER_REC *server) g_return_if_fail(server != NULL); params = event_get_params(data, 2, NULL, &mode); - printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_USER_MODE, mode); + printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_USER_MODE, + g_strchomp(mode)); g_free(params); } @@ -321,7 +322,8 @@ static void event_channel_mode(const char *data, IRC_SERVER_REC *server) g_return_if_fail(data != NULL); params = event_get_params(data, 3 | PARAM_FLAG_GETREST, NULL, &channel, &mode); - printformat(server, channel, MSGLEVEL_CRAP, IRCTXT_CHANNEL_MODE, channel, mode); + printformat(server, channel, MSGLEVEL_CRAP, IRCTXT_CHANNEL_MODE, + channel, g_strchomp(mode)); g_free(params); } |