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)}"); }
public void Visit(Ban ban) { throw new NotImplementedException(); }
public override void Visit(Ban ban) { var message = ban.Perm ? $".ban {ban.Victim}" : $".timeout {ban.Victim} {ban.Duration.TotalSeconds}"; SendMsg(message); }
public void Visit(Ban ban) { Print(ban); }
public void Process(Ban ban) { }
public void Process(Ban ban) { _sender.Invoke($"<{ban.Sender.OriginalNick}> <=== just banned {ban.Victim}"); }
public virtual void Visit(Ban ban) { Print(ban); }