mirror of
https://github.com/thelounge/thelounge.git
synced 2026-08-02 08:06:11 -04:00
lint
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user