CwIRC.Interface.JOIN C# (CSharp) Method

JOIN() public method

Sends the JOIN message to the IRC server, with the specified channel to join.
public JOIN ( string p_channel ) : void
p_channel string The channel to join.
return void
        public void JOIN(string p_channel)
        {
            if (!p_channel.StartsWith("#"))
                p_channel = "#" + p_channel;
            SendData("JOIN " + p_channel);
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Constructor for MoronBot.
        /// This is where:
        ///  - All of the Bot's Functions are loaded.
        ///  - Settings is initialized from xml.
        ///  - The initial connection to the server is made.
        /// </summary>
        public MoronBot()
        {
            if (!LoadXML("settings.xml"))
            {
                SaveXML("settings.xml");
            }

            LoadFunctions();

            //PluginLoader.WatchDirectory(Settings.Instance.FunctionPath, FuncDirChanged);

            Nick = Settings.Instance.Nick;

            cwIRC = CwIRC.Interface.Instance;

            cwIRC.MessageReceived += CwIRC_MessageReceived;
            cwIRC.Connect(Settings.Instance.Server, Settings.Instance.Port);
            cwIRC.NICK(Nick);
            cwIRC.USER(Nick, "Nope", "Whatever", "MoronBot 0.1.6");
            cwIRC.SendData("PASS mOrOnBoTuS");
            Say("identify mOrOnBoTuS", "NickServ");

            cwIRC.JOIN(Settings.Instance.Channel);

            connectionTimer.Elapsed += new System.Timers.ElapsedEventHandler(connectionTimer_Elapsed);
            connectionTimer.Interval = 120000;
            connectionTimer.Enabled  = true;
        }
All Usage Examples Of CwIRC.Interface::JOIN