aboutsummaryrefslogtreecommitdiff
path: root/xC.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-07-28 04:00:15 +0200
committerPřemysl Eric Janouch <p@janouch.name>2024-07-28 04:10:30 +0200
commit3ad8c79de8724d3661c7502d6951f861eb3cebc7 (patch)
tree35168382f838b72601c6eeba2175ad4858943151 /xC.c
parent12fc3c228a45d3250b48c1320a130c59074f20d4 (diff)
downloadxK-3ad8c79de8724d3661c7502d6951f861eb3cebc7.tar.gz
xK-3ad8c79de8724d3661c7502d6951f861eb3cebc7.tar.xz
xK-3ad8c79de8724d3661c7502d6951f861eb3cebc7.zip
xC: handle multiline server commands properly
Additional lines might have been passed to the server intact as part of an argument, but we have /quote for that.
Diffstat (limited to 'xC.c')
-rw-r--r--xC.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xC.c b/xC.c
index 4902b08..75cbb93 100644
--- a/xC.c
+++ b/xC.c
@@ -8317,6 +8317,8 @@ irc_try_parse_welcome_for_userhost (struct server *s, const char *m)
strv_free (&v);
}
+static void process_input
+ (struct app_context *, struct buffer *, const char *);
static bool process_input_line
(struct app_context *, struct buffer *, const char *, int);
static void on_autoaway_timer (struct app_context *ctx);
@@ -8345,7 +8347,7 @@ irc_on_registered (struct server *s, const char *nickname)
if (command)
{
log_server_debug (s, "Executing \"#s\"", command);
- (void) process_input_line (s->ctx, s->buffer, command, 0);
+ (void) process_input (s->ctx, s->buffer, command);
}
int64_t command_delay = get_config_integer (s->config, "command_delay");