Inheritance: HasVictim
Example #1
0
 public override void Visit(Ban ban)
 {
     var obj = ban.Duration == TimeSpan.Zero ? new BanSender(ban.Victim, ban.Ip, true, ban.Reason) : new BanSender(ban.Victim, ban.Ip, ban.Duration, ban.Reason);
       _websocket.Send($"BAN {JsonConvert.SerializeObject(obj)}");
 }
Example #2
0
 public void Visit(Ban ban)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public override void Visit(Ban ban)
 {
     var message = ban.Perm ? $".ban {ban.Victim}" : $".timeout {ban.Victim} {ban.Duration.TotalSeconds}";
       SendMsg(message);
 }
Example #4
0
 public void Visit(Ban ban) {
   Print(ban);
 }
Example #5
0
 public void Process(Ban ban)
 {
 }
Example #6
0
 public void Process(Ban ban)
 {
     _sender.Invoke($"<{ban.Sender.OriginalNick}> <=== just banned {ban.Victim}");
 }
Example #7
0
 public virtual void Visit(Ban ban)
 {
     Print(ban);
 }