mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 22:45:42 +02:00
irc: do not strip trailing spaces from incoming IRC messages
This commit is contained in:
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user