예제 #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 void Mode(string modeSpec)
 {
     Mode(IrcUserMode.ParseModes(modeSpec));
 }
예제 #2
0
 internal IrcUserModeEventArgs(IrcMessage message)
     : base(message)
 {
     Modes = message.Parameters.Count > 1 ? IrcUserMode.ParseModes(message.Parameters.Skip(1)) : null;
 }
예제 #3
0
 /// <summary>
 ///     Set or unset modes for the session.
 /// </summary>
 /// <param name="modes">The collection of modes to set or unset.</param>
 public void Mode(IEnumerable <IrcUserMode> modes)
 {
     Send("MODE", new IrcTarget(Nickname), IrcUserMode.RenderModes(modes));
 }