mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
relay: keep spaces in beginning of "input" received from client (WeeChat protocol)
This commit is contained in:
@@ -250,12 +250,17 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(nicklist)
|
||||
RELAY_WEECHAT_PROTOCOL_CALLBACK(input)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
char *pos;
|
||||
|
||||
RELAY_WEECHAT_PROTOCOL_MIN_ARGS(2);
|
||||
|
||||
ptr_buffer = relay_weechat_protocol_get_buffer (argv[0]);
|
||||
if (ptr_buffer)
|
||||
weechat_command (ptr_buffer, argv_eol[1]);
|
||||
{
|
||||
pos = strchr (argv_eol[0], ' ');
|
||||
if (pos)
|
||||
weechat_command (ptr_buffer, pos + 1);
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user