1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

Remove trailing spaces from all modes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@930 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-03 01:43:07 +00:00 committed by cras
parent f436a34f61
commit 4c82e70fb5

View File

@ -45,7 +45,8 @@ static void event_user_mode(const char *data, IRC_SERVER_REC *server)
g_return_if_fail(server != NULL); g_return_if_fail(server != NULL);
params = event_get_params(data, 2, NULL, &mode); 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); 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); g_return_if_fail(data != NULL);
params = event_get_params(data, 3 | PARAM_FLAG_GETREST, NULL, &channel, &mode); 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); g_free(params);
} }