private void Session_UserModeChanged(object sender, IrcUserModeEventArgs e) { if (this.IsServer) { this.Write("Mode", string.Format("You set mode: {0}", IrcUserMode.RenderModes(e.Modes))); } this.SetTitle(); }
/// <inheritdoc/> public IEnumerable <IrcUserMode> LookupUserModes(char[] mode) { var result = new IrcUserMode[mode.Length]; for (var x = 0; x < mode.Length; ++x) { result[x] = this.userModeDict[mode[x]]; } return(result); }