private void ParentServer_OnError(object sender, ErrorMessageEventArgs a) { AddLine(ServerStrings.ServerErrorMessage.With(a.Code, a.Message)); }
private void ParentServer_OnError(object sender, ErrorMessageEventArgs a) { if (a.Code == ReplyCode.ERR_NOMOTD) { Debug.WriteLine("Message ignored: " + a.Code); return; } AddLine(string.Format("{0} {1}", a.Code, a.Message)); }
private void Listener_OnError(object sender, ErrorMessageEventArgs a) { if (ErrorMessageRecieved != null) ErrorMessageRecieved(sender, new ErrorMessageEventArgs(a.Code, a.Message)); }
private void Server_ErrorMessageRecieved(object sender, ErrorMessageEventArgs e) { if (e.Code == ReplyCode.ERR_NOMOTD) { Debug.WriteLine("Message ignored: " + e.Code); return; } ChatLines.Add(new IrcErrorViewModel(DateTime.Now, e.Message, e.Code.ToString())); }