Наследование: HasVictim
Пример #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)}");
 }
Пример #2
0
 public void Visit(Ban ban)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public override void Visit(Ban ban)
 {
     var message = ban.Perm ? $".ban {ban.Victim}" : $".timeout {ban.Victim} {ban.Duration.TotalSeconds}";
       SendMsg(message);
 }
Пример #4
0
 public void Visit(Ban ban) {
   Print(ban);
 }
Пример #5
0
 public void Process(Ban ban)
 {
 }
Пример #6
0
 public void Process(Ban ban)
 {
     _sender.Invoke($"<{ban.Sender.OriginalNick}> <=== just banned {ban.Victim}");
 }
Пример #7
0
 public virtual void Visit(Ban ban)
 {
     Print(ban);
 }