mIRC Home    About    Download    Register    News    Help

Print Thread
#141104 04/02/06 09:45 PM
Joined: May 2005
Posts: 35
N
nutt3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
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: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
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.

What do you do at the end of the world? Are you busy? Will you save us?
#141106 04/02/06 10:18 PM
Joined: May 2005
Posts: 35
N
nutt3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
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: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Check the edited post again ^^


What do you do at the end of the world? Are you busy? Will you save us?
#141108 04/02/06 10:57 PM
Joined: May 2005
Posts: 35
N
nutt3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
weee thanks again :P

hmm what else can i think of... smile

#141109 06/02/06 02:45 PM
Joined: Feb 2006
Posts: 2
K
Bowl of petunias
Offline
Bowl of petunias
K
Joined: Feb 2006
Posts: 2
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
Joined: Dec 2005
Posts: 54
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2005
Posts: 54
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
Joined: Feb 2006
Posts: 2
K
Bowl of petunias
Offline
Bowl of petunias
K
Joined: Feb 2006
Posts: 2
OK man thnx... How can I become a chanel operator, can I protect me for kicks?

#141112 06/02/06 04:02 PM
Joined: Dec 2005
Posts: 54
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2005
Posts: 54
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