Ignore:
Timestamp:
Jul 23, 2024, 6:49:56 PM (5 months ago)
Author:
alloc
Message:

*Fixed: Chat code
*Fixed: SSE connection counting, added connection set up logging

Location:
TFP-WebServer/CommandExtensions/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/CommandExtensions/src/ChatHelpers.cs

    r485 r499  
    1010                        }
    1111
    12                         _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message,
    13                                 $"{senderName} (PM)", null));
     12                        _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,
     13                                $"{senderName} (PM): {_message}", null,
     14                                EMessageSender.None));
    1415                        string receiverName = _receiver.playerName;
    1516                        receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName";
  • TFP-WebServer/CommandExtensions/src/Commands/Give.cs

    r487 r499  
    5151                        }
    5252
    53                         int quality = Constants.cItemMaxQuality;
     53                        ushort quality = Constants.cItemMaxQuality;
    5454
    5555                        if (_params.Count == 4) {
    56                                 if (!int.TryParse (_params [3], out quality) || quality <= 0) {
     56                                if (!ushort.TryParse (_params [3], out quality) || quality > Constants.cItemMaxQuality) {
    5757                                        SdtdConsole.Instance.Output ("Quality is not an integer or not greater than zero.");
    5858                                        return;
Note: See TracChangeset for help on using the changeset viewer.