示例#1
0
 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();
 }
示例#2
0
        /// <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);
        }