fCraft.IRC.IRCThread.Start C# (CSharp) Method

Start() public method

public Start ( [ botNick, bool parseInput ) : bool
botNick [
parseInput bool
return bool
            public bool Start( [NotNull] string botNick, bool parseInput ) {
                if ( botNick == null )
                    throw new ArgumentNullException( "botNick" );
                desiredBotNick = botNick;
                ResponsibleForInputParsing = parseInput;
                try {
                    // start the machinery!
                    thread = new Thread( IoThread ) {
                        Name = "fCraft.IRC",
                        IsBackground = true,
                        CurrentCulture = new CultureInfo( "en-US" )
                    };
                    thread.Start();
                    return true;
                } catch ( Exception ex ) {
                    Logger.Log( LogType.Error,
                                "IRC: Could not start the bot: {0}", ex );
                    return false;
                }
            }