diff --git a/server/plugins/inputs/action.ts b/server/plugins/inputs/action.ts index 45cd0b128..7ea6fbb3c 100644 --- a/server/plugins/inputs/action.ts +++ b/server/plugins/inputs/action.ts @@ -34,8 +34,8 @@ const input: PluginInputHandler = function (network, chan, cmd, args) { text = text || args.join(" "); const replyTo = this._pendingReplyTo; - const replyTags = replyTo && network.serverOptions.supportsReply - ? {"+reply": replyTo} : undefined; + const replyTags = + replyTo && network.serverOptions.supportsReply ? {"+reply": replyTo} : undefined; if (replyTags) { // irc.action() doesn't support tags diff --git a/server/plugins/inputs/msg.ts b/server/plugins/inputs/msg.ts index a15fda750..ed3a0bc81 100644 --- a/server/plugins/inputs/msg.ts +++ b/server/plugins/inputs/msg.ts @@ -94,8 +94,8 @@ const input: PluginInputHandler = function (network, chan, cmd, args) { } const replyTo = this._pendingReplyTo; - const replyTags = replyTo && network.serverOptions.supportsReply - ? {"+reply": replyTo} : undefined; + const replyTags = + replyTo && network.serverOptions.supportsReply ? {"+reply": replyTo} : undefined; network.irc.say(targetName, msg, replyTags); // If the IRCd does not support echo-message, simulate the message diff --git a/server/plugins/inputs/notice.ts b/server/plugins/inputs/notice.ts index db0c0f7a1..f0cc7bedc 100644 --- a/server/plugins/inputs/notice.ts +++ b/server/plugins/inputs/notice.ts @@ -11,8 +11,8 @@ const input: PluginInputHandler = function (network, chan, cmd, args) { let message = args.slice(1).join(" "); const replyTo = this._pendingReplyTo; - const replyTags = replyTo && network.serverOptions.supportsReply - ? {"+reply": replyTo} : undefined; + const replyTags = + replyTo && network.serverOptions.supportsReply ? {"+reply": replyTo} : undefined; network.irc.notice(targetName, message, replyTags); // If the IRCd does not support echo-message, simulate the message diff --git a/server/plugins/irc-events/message.ts b/server/plugins/irc-events/message.ts index aeceb99ee..e4d5570ab 100644 --- a/server/plugins/irc-events/message.ts +++ b/server/plugins/irc-events/message.ts @@ -165,7 +165,9 @@ export default function (irc, network) { if (parentMsg) { msg.replyToNick = parentMsg.from?.nick; - const cleanReplyToText = parentMsg.text ? cleanIrcMessage(parentMsg.text) : parentMsg.text; + const cleanReplyToText = parentMsg.text + ? cleanIrcMessage(parentMsg.text) + : parentMsg.text; msg.replyToText = cleanReplyToText?.substring(0, 200); // Replies to our own messages should highlight like a mention