コード例 #1
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Channel );
     writer.AddParameter( this.Knocker.ToString() );
     writer.AddParameter( "has asked for an invite." );
 }
 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Limit.ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( MessageUtil.CreateList( this.Nicks, "," ) );
     writer.AddParameter( "Monitor list is full." );
 }
 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     writer.AddParameter( this.Channel );
     writer.AddParameter( "Cannot kill, kick or deop channel service" );
 }
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     // :irc.ptptech.com 253 artificer 15 :unknown connection(s)
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.UnknownConnectionCount.ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( "unknown connection(s)" );
 }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :mesra.kl.my.dal.net 307 artificer acidjnk :has identified for this nick

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Nick );
            writer.AddParameter( "has identified for this nick" );
        }
コード例 #6
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat(IrcMessageWriter writer)
 {
     base.AddParametersToFormat (writer);
     writer.AddParameter(this.Command);
     foreach( String param in this.Parameters ) {
         writer.AddParameter(param);
     }
 }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.pte.hu 458 artificer BBS :is not on your accept list

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Nick );
            writer.AddParameter( "is not on your accept list" );
        }
コード例 #8
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Target );
     if ( this.ForwardServer.Length != 0 )
     {
         writer.AddParameter( this.ForwardServer );
     }
 }
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.User.Nick );
     writer.AddParameter( this.User.UserName );
     writer.AddParameter( this.User.HostName );
     writer.AddParameter( "*" );
     writer.AddParameter( this.User.RealName );
 }
コード例 #10
0
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.inter.net.il 042 NeboBot NeboBot 5ILABFZUY :your unique ID

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Target );
            writer.AddParameter( this.UniqueId );
            writer.AddParameter( this.yourUniqueID );
        }
コード例 #11
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( this.Query != null && this.Query.Length != 0 )
     {
         writer.AddParameter( this.Query );
         writer.AddParameter( this.Target );
     }
 }
コード例 #12
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Mask.ToString() );
     if ( this.restrictToOps )
     {
         writer.AddParameter( "o" );
     }
 }
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.WatchedUser.Nick );
     writer.AddParameter( this.WatchedUser.UserName );
     writer.AddParameter( this.WatchedUser.HostName );
     writer.AddParameter( MessageUtil.ConvertToUnixTime( this.TimeOfChange ).ToString( CultureInfo.InvariantCulture ) );
     writer.AddParameter( this.ChangeMessage );
 }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // actual message received from efnet,
            // although the text isn't the same as what appears in references.
            // :irc.pte.hu 457 artificer azure :is already on your accept list

            base.AddParametersToFormat( writer );
            writer.AddParameter( this.Nick );
            writer.AddParameter( "is already on your accept list" );
        }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );
            writer.AddParameter( "-" );

            if ( this.nicks != null )
            {
                writer.AddParameter( MessageUtil.CreateList( this.nicks, "," ), true );
            }
        }
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     if ( this.onlineOnly )
     {
         writer.AddParameter( "l" );
     }
     else
     {
         writer.AddParameter( "L" );
     }
 }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.pte.hu 282 artificer :End of /ACCEPT list.

            base.AddParametersToFormat( writer );
            writer.AddParameter( "End of /ACCEPT list." );
        }
コード例 #18
0
        /// <exclude />
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.server 456 client :Accept list is full

            base.AddParametersToFormat( writer );
            writer.AddParameter( "Accept list is full" );
        }
コード例 #19
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     foreach ( String datum in this.Data )
     {
         writer.AddParameter( datum, false );
     }
 }
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     if ( this.Channels.Count != 0 )
     {
         writer.AddList( this.Channels, " ", false );
     }
 }
コード例 #21
0
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            // :irc.pte.hu 281 artificer azure bbs

            base.AddParametersToFormat( writer );
            foreach ( String nick in this.Nicks )
            {
                writer.AddParameter( nick );
            }
        }
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );
            String userList = MessageUtil.CreateList<User>( this.Users, ",", delegate( User user )
            {
                return user.ToNickUserHostString();
            } );

            writer.AddParameter( userList );
        }
コード例 #23
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     if ( this.Reason.Length != 0 )
     {
         writer.AddParameter( this.Reason );
     }
     else
     {
         writer.AddParameter( "kill" );
     }
 }
コード例 #24
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     String replyList = MessageUtil.CreateList<User>( this.Users, " ", delegate( User user )
     {
         String result = user.Nick;
         if ( user.IrcOperator )
         {
             result += "*";
         }
         result += "=";
         result += ( user.OnlineStatus == UserOnlineStatus.Away ) ? "+" : "-";
         result += user.UserName;
         result += "@";
         result += user.HostName;
         return result;
     } );
     writer.AddParameter( replyList, true );
 }
コード例 #25
0
        /// <summary>
        /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
        /// </summary>
        protected override void AddParametersToFormat( IrcMessageWriter writer )
        {
            base.AddParametersToFormat( writer );

            writer.AddParameter( this.ServerName );
            writer.AddParameter( this.Version );
            writer.AddParameter( this.UserModes );
            writer.AddParameter( this.ChannelModes );
            if ( this.ChannelModesWithParams.Length != 0 )
            {
                writer.AddParameter( this.ChannelModesWithParams );
                if ( this.UserModesWithParams.Length != 0 )
                {
                    writer.AddParameter( this.UserModesWithParams );
                    if ( this.ServerModes.Length != 0 )
                    {
                        writer.AddParameter( this.ServerModes );
                        if ( this.ServerModesWithParams.Length != 0 )
                        {
                            writer.AddParameter( this.ServerModesWithParams );
                        }
                    }
                }
            }
        }
コード例 #26
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>.
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Channel, false );
     writer.AddParameter( this.Text, true );
 }
 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.UnknownMode );
     writer.AddParameter( "is unknown mode char to me" );
 }
コード例 #28
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Info );
 }
 /// <exclude />
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Channel );
     writer.AddParameter( "Cannot join channel (+i)" );
 }
コード例 #30
0
 /// <summary>
 /// Overrides <see cref="IrcMessage.AddParametersToFormat"/>
 /// </summary>
 protected override void AddParametersToFormat( IrcMessageWriter writer )
 {
     base.AddParametersToFormat( writer );
     writer.AddParameter( this.Nick );
     writer.AddParameter( "No such nick/channel" );
 }