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/Commands/Reply.cs

    r309 r325  
    1 using System;
    21using System.Collections.Generic;
    32
    4 namespace AllocsFixes.CustomCommands
    5 {
    6         public class Reply : ConsoleCmdAbstract
    7         {
    8                 public override string GetDescription ()
    9                 {
     3namespace AllocsFixes.CustomCommands {
     4        public class Reply : ConsoleCmdAbstract {
     5                public override string GetDescription () {
    106                        return "send a message to  the player who last sent you a PM";
    117                }
     
    139                public override string GetHelp () {
    1410                        return "Usage:\n" +
    15                                    "   reply <message>\n" +
    16                                    "Send the given message to the user you last received a PM from.";
     11                               "   reply <message>\n" +
     12                               "Send the given message to the user you last received a PM from.";
    1713                }
    1814
    19                 public override string[] GetCommands ()
    20                 {
    21                         return new string[] { "reply", "re" };
     15                public override string[] GetCommands () {
     16                        return new[] {"reply", "re"};
    2217                }
    2318
    24                 private void RunInternal (ClientInfo _sender, List<string> _params)
    25                 {
     19                private void RunInternal (ClientInfo _sender, List<string> _params) {
    2620                        if (_params.Count < 1) {
    2721                                SdtdConsole.Instance.Output ("Usage: reply <message>");
     
    3529                                Chat.SendMessage (receiver, _sender, message);
    3630                        } else {
    37                                 SdtdConsole.Instance.Output ("You have not received a PM so far or sender of last received PM is no longer online.");
     31                                SdtdConsole.Instance.Output (
     32                                        "You have not received a PM so far or sender of last received PM is no longer online.");
    3833                        }
    3934                }
Note: See TracChangeset for help on using the changeset viewer.