Пример #1
0
 /// <summary>
 /// Set or unset modes for the session.
 /// </summary>
 /// <param name="modeSpec">The mode specification in the format +/-[modes] [parameters].</param>
 /// <remarks>
 /// Examples of modeSpec parameter:
 /// +im
 /// +iw-m
 /// -mw
 /// </remarks>
 public async Task ModeAsync(string modeSpec)
 {
     await ModeAsync(IrcUserMode.ParseModes(modeSpec));
 }
Пример #2
0
 internal IrcUserModeEventArgs(IrcMessage message)
     : base(message)
 {
     this.Modes = message.Parameters.Count > 1 ? IrcUserMode.ParseModes(message.Parameters.Skip(1)) : null;
 }