Page 1 of 1

OnKick Event?

PostPosted: 24 May 2014, 19:54
by HETAL
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

Re: OnKick Event?

PostPosted: 27 May 2014, 02:19
by tommyz_
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);
        }

Re: OnKick Event?

PostPosted: 27 May 2014, 02:34
by HETAL
That is for IRC parts, I need it for when someone intake is kicked.