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:
@@ -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))
|
||||
|
||||
@@ -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])
|
||||
|
||||
+245
-249
File diff suppressed because it is too large
Load Diff
@@ -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
Reference in New Issue
Block a user