mIRC Home    About    Download    Register    News    Help

Print Thread
#141104 04/02/06 09:45 PM
N
nutt3
nutt3
N
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

#141105 04/02/06 10:03 PM
Joined: Nov 2004
Posts: 822
J
Hoopy frood
Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
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.

Last edited by Jigsy; 04/02/06 10:45 PM.
#141106 04/02/06 10:18 PM
N
nutt3
nutt3
N
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)

Last edited by nutt3; 04/02/06 10:26 PM.
#141107 04/02/06 10:46 PM
Joined: Nov 2004
Posts: 822
J
Hoopy frood
Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Check the edited post again ^^

#141108 04/02/06 10:57 PM
N
nutt3
nutt3
N
weee thanks again :P

hmm what else can i think of... smile

#141109 06/02/06 02:45 PM
K
kingyun
kingyun
K
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

#141110 06/02/06 02:52 PM
B
Bundy
Bundy
B
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.

#141111 06/02/06 03:43 PM
K
kingyun
kingyun
K
OK man thnx... How can I become a chanel operator, can I protect me for kicks?

#141112 06/02/06 04:02 PM
B
Bundy
Bundy
B
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,


Link Copied to Clipboard