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); };