protected void SendCommon(IClientVisitor client) { if (!SilentReason && !string.IsNullOrWhiteSpace(Reason)) { client.Visit(new PublicMessage(Reason)); } }
public override void Accept(IClientVisitor visitor) { foreach (var submessage in OriginalText.Split('\n')) { visitor.Visit(new PublicMessage(submessage)); } }
private void ProcessConsoleInput() { while (true) { //Process.GetCurrentProcess().WaitForExit(); // If you ever have to get rid of the while(true) var input = Console.ReadLine(); if (string.IsNullOrEmpty(input)) { continue; } if (input == "exit") { return; } if (input[0] == '~') { _client.Visit(new PublicMessage(input.Substring(1))); } if (input[0] == '!') { _client.Forward(new ModPublicMessage("SYSTEM CONSOLE", input)); } } }
public override void Accept(IClientVisitor visitor) { if (string.IsNullOrWhiteSpace(Reason)) { SilentReason = true; Reason = "Manual bot ban."; } visitor.Visit(this); base.SendCommon(visitor); }
public override void Accept(IClientVisitor visitor) { if (string.IsNullOrWhiteSpace(Reason)) { SilentReason = true; Reason = "Manual bot ban."; } visitor.Visit(this); base.SendCommon(visitor); }
public override void Accept(IClientVisitor visitor) { visitor.Visit(this); }
public override void Accept(IClientVisitor visitor) { visitor.Visit(this); base.SendCommon(visitor); }
public override void Accept(IClientVisitor visitor) { visitor.Visit(this); }
public void Accept(IClientVisitor visitor) { visitor.Visit(this); }
public void Accept(IClientVisitor visitor) { visitor.Visit(this); }
public override void Accept(IClientVisitor visitor) { foreach (var submessage in OriginalText.Split('\n')) { visitor.Visit(new PublicMessage(submessage)); } }
public override void Accept(IClientVisitor visitor) { visitor.Visit(this); base.SendCommon(visitor); }
protected void SendCommon(IClientVisitor client) { if (!SilentReason && !string.IsNullOrWhiteSpace(Reason)) { client.Visit(new PublicMessage(Reason)); } }