OnKick Event?

OnKick Event?

Postby HETAL » 24 May 2014, 19:54

I am in need of a Player OnKick event to complete an IRCBot I'm working on, I wasn't able to do it through the Disconnect Event. :D
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10

Re: OnKick Event?

Postby tommyz_ » 27 May 2014, 02:19

I remember the old mclawl irc had :
Code: Select all
irc.OnPart += new PartEventHandler(OnPart);

and then

Code: Select all
  void OnPart(object sender, PartEventArgs e)
        {
            Program.Log(e.Data.Nick + " has left channel " + e.Data.Channel);
            if (e.Data.Channel == opchannel)
            {
                Program.Log(e.Data.Nick +" has left the operator channel");
            }
            else
            {
                Program.Log(e.Data.Nick + " has left the channel");
            }
            irc.RfcNames(channel);
            irc.RfcNames(opchannel);
        }
tommyz_
 
Posts: 12
Joined: 17 May 2014, 02:46

Re: OnKick Event?

Postby HETAL » 27 May 2014, 02:34

That is for IRC parts, I need it for when someone intake is kicked.
YOU HAVENT SEEN THE LAST OF ME ISMELLIKE
HETAL
 
Posts: 397
Joined: 24 May 2013, 12:10


Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 1 guest

cron