private void Handle(UnBanIPMessage message) { IpBan ipBan = AccountManager.FindIpBan(message.IPRange); if (ipBan == null) { Client.SendError(string.Format("IP ban {0} not found", message.IPRange)); } else { Database.Delete(ipBan); Client.ReplyRequest(new CommonOKMessage(), message); } }
void Handle(UnBanIPMessage message) { var ipBan = Managers.AccountManager.Instance.FindIpBan(message.IPRange); if (ipBan == null) { Client.SendError(string.Format("IP ban {0} not found", message.IPRange), message); } else { Database.Delete(ipBan); Managers.AccountManager.Instance.RemoveIPBan(ipBan); Client.ReplyRequest(new CommonOKMessage(), message); } }