Skip to content

Commit

Permalink
add prefix for achat
Browse files Browse the repository at this point in the history
  • Loading branch information
Schrodinger71 committed Jun 30, 2024
1 parent 0b0aa7c commit 7dbbb94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/Chat/Managers/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,10 @@ private void SendAdminChat(ICommonSession player, string message)
}

var clients = _adminManager.ActiveAdmins.Select(p => p.Channel);
var senderName = player.Name + (string.IsNullOrEmpty(senderAdmin?.Title) ? "" : $" \\[{senderAdmin.Title}\\]"); // Добавил переменную senderName, в ней содержиться player.Name и условие на добавление префикса в админ чате. Tweak ADT Schrodinger

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context

Check failure on line 283 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The name 'senderAdmin' does not exist in the current context
var wrappedMessage = Loc.GetString("chat-manager-send-admin-chat-wrap-message",
("adminChannelName", Loc.GetString("chat-manager-admin-channel-name")),
("playerName", player.Name), ("message", FormattedMessage.EscapeText(message)));
("playerName", senderName), ("message", FormattedMessage.EscapeText(message))); // ADT Tweak тут заменил player.Name на senderName

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

Check failure on line 286 in Content.Server/Chat/Managers/ChatManager.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Argument 3: cannot convert from '(string, ?)' to '(string, object)'

foreach (var client in clients)
{
Expand Down

0 comments on commit 7dbbb94

Please sign in to comment.