示例#1
0
        public static void cmdCycle(mcPage aPage, string Parameters)
        {
            if (Parameters == null)
            {
                aPage.MessageInfo("Usage: /cycle <channel>");
                return;
            }

            //hmm, shouldn't we be waiting for reciept of PART/JOIN
            //to display messages?
            aPage.Server.IRCSend("PART " + aPage.Text + " :Cycling channel.");
            aPage.MessageDisplay("<-- " + aPage.Server.MyNickname+" has left " + aPage.Text);
            aPage.Server.IRCSend("JOIN " + aPage.Text);
            aPage.MessageDisplay("--> " + aPage.Server.MyNickname+" has joined "+aPage.Text);
        }
示例#2
0
        public static void cmdCycle(mcPage aPage, string Parameters)
        {
            if (Parameters == null)
            {
                aPage.MessageInfo("Usage: /cycle <channel>");
                return;
            }

            //hmm, shouldn't we be waiting for reciept of PART/JOIN
            //to display messages?
            aPage.Server.IRCSend("PART " + aPage.Text + " :Cycling channel.");
            aPage.MessageDisplay("<-- " + aPage.Server.MyNickname + " has left " + aPage.Text);
            aPage.Server.IRCSend("JOIN " + aPage.Text);
            aPage.MessageDisplay("--> " + aPage.Server.MyNickname + " has joined " + aPage.Text);
        }