RaidLeaderSecretary-v0.1.7-WotLK.zip
What's new
[0.1.7] - 2026-08-21
Fixed / 修复
-
Broadcast logs "sent" but messages never delivered: The previous v0.1.6 approach wrapped
ChatThrottleLib:SendChatMessageinpcall, butpcall's first return value only indicates whether the function call threw an error, not whether CTL actually queued the message. When CTL returned(false, reason)(e.g. internal queue full / BURST limit),pcallreturned(true, false, reason)and the code interpretedok=trueas "sent successfully", printing a false-positive "已发送到" log while the message was silently dropped. Additionally, CTL is primarily designed for Addon Message rate-limiting, not regular chat messages, and may enqueue-but-not-deliver ordinary chat traffic.-
修复喊话点击后日志显示"已发送到 X 个频道"但实际一条都没发出去的问题:v0.1.6 用
pcall包裹ChatThrottleLib:SendChatMessage,但pcall的第一个返回值只代表「函数调用有没有抛错」,不代表「CTL 是否真的入队成功」。当 CTL 入队失败返回(false, reason)时,pcall返回(true, false, reason),代码把ok=true当成"发送成功"打印"已发送",实际消息被静默丢弃。而且 CTL 主要为 Addon Message 设计,对普通聊天消息反而可能入队后不真正发送。
-
Changed / 变更
-
Simplified broadcast to direct synchronous SendChatMessage (reference: HanHua addon): Removed all ChatThrottleLib dependency, C_Timer.After interval queue (2s/3s), and three-layer pcall return-value parsing. Now iterates selected channels and calls
SendChatMessage(msg, chatType, nil, channelID)directly and synchronously, exactly like the HanHua addon does. WoW 3.3.5 server accepts same-content messages to multiple channels in a tight loop (proven by HanHua working fine), so no queueing/throttling is needed. Cooldown mechanism (60s) and immediate-cooldown-on-click are retained to prevent rapid re-clicking.-
简化喊话发送方式(参考 HanHua 插件):移除 ChatThrottleLib 依赖、C_Timer 间隔队列(2秒/3秒)、三层 pcall 返回值解析。现在直接同步循环调用
SendChatMessage(msg, chatType, nil, channelID),和 HanHua 插件完全一致。WoW 3.3.5 服务器对循环发送多频道相同内容消息是接受的(HanHua 一直这么用没问题),不需要客户端限速/队列。冷却机制(60秒)和点击立即标记冷却保留,防止快速重复点击。
-
This mod has no additional files

