This commit is contained in:
Max Leiter
2026-04-18 11:38:35 -07:00
parent 1b38dfa575
commit dcae4ba0c0
4 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -165,7 +165,9 @@ export default <IrcEventHandler>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