fiX: handle commands with temp channels better
This commit is contained in:
@@ -463,6 +463,7 @@ internal sealed class ChatLog : IUiComponent {
|
||||
this.AddBacklog(trimmed);
|
||||
this._inputBacklogIdx = -1;
|
||||
|
||||
if (!trimmed.StartsWith('/')) {
|
||||
if (this._tellTarget != null) {
|
||||
var target = this._tellTarget;
|
||||
var reason = target.Reason;
|
||||
@@ -482,11 +483,13 @@ internal sealed class ChatLog : IUiComponent {
|
||||
goto Skip;
|
||||
}
|
||||
|
||||
|
||||
if (this._tempChannel != null) {
|
||||
trimmed = $"{this._tempChannel.Value.Prefix()} {trimmed}";
|
||||
} else if (activeTab is { Channel: { } channel } && !trimmed.StartsWith('/')) {
|
||||
} else if (activeTab is { Channel: { } channel }) {
|
||||
trimmed = $"{channel.Prefix()} {trimmed}";
|
||||
}
|
||||
}
|
||||
|
||||
this.Ui.Plugin.Common.Functions.Chat.SendMessage(trimmed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user