1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 01:25:42 +02:00

irc: do not strip trailing spaces from incoming IRC messages

This commit is contained in:
Sébastien Helleu
2024-09-15 21:47:32 +02:00
parent 6908eec160
commit 01103cb02a
5 changed files with 546 additions and 540 deletions
+1
View File
@@ -15,6 +15,7 @@
### Fixed
- core, plugins: fix integer overflow in loops ([#2178](https://github.com/weechat/weechat/issues/2178))
- irc: do not strip trailing spaces from incoming IRC messages
- relay/api: fix empty nicklist in remote buffers after connection or reconnection
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
+4
View File
@@ -672,6 +672,10 @@ irc_mode_user_set (struct t_irc_server *server, const char *modes,
server->nick_modes = NULL;
}
}
while (modes && (modes[0] == ' '))
{
modes++;
}
set_flag = '+';
end = 0;
while (modes && modes[0])
File diff suppressed because it is too large Load Diff
+1 -4
View File
@@ -27,11 +27,9 @@
irc_protocol_cb_##__command ( \
struct t_irc_protocol_ctxt *ctxt)
#define IRCB(__message, __decode_color, __keep_trailing_spaces, \
__func_cb) \
#define IRCB(__message, __decode_color, __func_cb) \
{ #__message, \
__decode_color, \
__keep_trailing_spaces, \
&irc_protocol_cb_##__func_cb }
#define IRC_PROTOCOL_MIN_PARAMS(__min_params) \
@@ -83,7 +81,6 @@ struct t_irc_protocol_msg
{
char *name; /* IRC message name */
int decode_color; /* decode color before calling function */
int keep_trailing_spaces; /* keep trailing spaces in message */
t_irc_recv_func *recv_function; /* function called when msg is received */
};
File diff suppressed because it is too large Load Diff