mIRC Homepage

both channels or kick

Posted By: nutt3

both channels or kick - 04/02/06 09:45 PM

Im looking for a script that will, when a user joins #channel2, check if he/her is in #channel1 aswell and if not then kick..

Can anyone help please
Posted By: Jigsy

Re: both channels or kick - 04/02/06 10:03 PM

Try this ... (It is untested however ...)

Code:
on @*:join:#channel2:{
  var %x = 0
  while (%x < $comchan($nick,0)) {
    inc %x 1
    if ($comchan($nick,%x) == #channel1) { var %tmp.1 = 1 }
  }
  if (!%tmp.1) {
    inc %kick.counter 1
    kick $chan $nick Some Reason ... ( $+ %kick.counter $+ )
  }
}


Change #channel1 and #channel2 to the names of the channel.
Posted By: nutt3

Re: both channels or kick - 04/02/06 10:18 PM

Nice thx alot, works great laugh

hmm would it be possible to add an counter to it soo it would show in reason like: Some Reason (kicks: xx) ? (where xx is the numbers of kicks)
Posted By: Jigsy

Re: both channels or kick - 04/02/06 10:46 PM

Check the edited post again ^^
Posted By: nutt3

Re: both channels or kick - 04/02/06 10:57 PM

weee thanks again :P

hmm what else can i think of... smile
Posted By: kingyun

Help me - 06/02/06 02:45 PM

Well hello everybody... I'm looking for a script or command that alow me kick somebody without be a chanel administrator or manager, and one that help me to be not kicked for somebody... anybody can help me?
Thanks
Posted By: Bundy

Re: Help me - 06/02/06 02:52 PM

Please start a new topic next time - it's confusing when a question pops up out of nowhere. You can't kick someone if you're not an operator or half operator in that spesific channel.
Posted By: kingyun

Re: Help me - 06/02/06 03:43 PM

OK man thnx... How can I become a chanel operator, can I protect me for kicks?
Posted By: Bundy

Re: Help me - 06/02/06 04:02 PM

You can start your own channel... Just type /j #YourChanName - You will automatically be an operator in that channel. Now you have to set yourself as founder. Ask an IRCop to help you. They are normally found in the main channel on the server, just ask around. I'm sure someone will be able to help you in regards to this.

Type the following in your status window:
/msg chanserv help commands

And read the info there :-)

Kind Regards,
© 2021 mIRC Discussion Forums