From c8cd4057bc4ef19271720fc6b893b9c74e690457 Mon Sep 17 00:00:00 2001 From: Reto Date: Thu, 7 Jul 2022 07:28:18 +0200 Subject: [PATCH] Fix ctcp request message (#4603) The message was ordered the wrong way in the TS rewrite. Old: +bookworm sent a CTCP request: "chadler" to version New: +bookworm sent a CTCP request: "version" to chadler --- server/plugins/inputs/ctcp.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/plugins/inputs/ctcp.ts b/server/plugins/inputs/ctcp.ts index eb4ec4b7..efb4b5e5 100644 --- a/server/plugins/inputs/ctcp.ts +++ b/server/plugins/inputs/ctcp.ts @@ -16,18 +16,17 @@ const input: PluginInputHandler = function ({irc}, chan, cmd, args) { } const target = args.shift()!; + const type = args.shift()!; chan.pushMessage( this, new Msg({ type: MessageType.CTCP_REQUEST, - ctcpMessage: `"${target}" to ${args[0]}`, + ctcpMessage: `"${type}" to ${target}`, from: chan.getUser(irc.user.nick), }) ); - const type = args.shift()!; - irc.ctcpRequest(target, type, ...args); };