Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/Chat.cs

    r267 r325  
    1 using System;
    2 
    3 namespace AllocsFixes.CustomCommands
    4 {
     1namespace AllocsFixes.CustomCommands {
    52        public class Chat {
    6 
    73                public static void SendMessage (ClientInfo _receiver, ClientInfo _sender, string _message) {
    84                        string senderName;
     
    139                                senderName = "Server";
    1410                        }
    15                         _receiver.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, _message, senderName + " (PM)", false, "", false));
     11
     12                        _receiver.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, _message, senderName + " (PM)",
     13                                false, "", false));
    1614                        string receiverName = _receiver.playerName;
    17                         SdtdConsole.Instance.Output ("Message to player " + (receiverName != null ? "\"" + receiverName + "\"" : "unknownName") + " sent with sender \"" + senderName + "\"");
     15                        SdtdConsole.Instance.Output ("Message to player " +
     16                                                     (receiverName != null ? "\"" + receiverName + "\"" : "unknownName") +
     17                                                     " sent with sender \"" + senderName + "\"");
    1818                }
    19 
    20 
    2119        }
    2220}
    23 
Note: See TracChangeset for help on using the changeset viewer.