mIRC Home    About    Download    Register    News    Help

Print Thread
#5615 08/01/03 09:09 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Ok, i need a on join script, like..

If a person joins my channel, and his in the channel ""#test" and then my script look up all the channels that person is on, and if his on the channel "#test" then kick/ban him.. but I am not on channel "#test" how to make this work? grin

#5616 08/01/03 09:19 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
on @*:JOIN:#yourchannel:{
set %wnick $nick
whois $nick
}
raw 319:*:{
if ( #channel isin $3- ) && ( %wnick == $2 ) {
kick #yourchannel $2
}
}

That will work, but will show a whois in the status window everytime someone joins #yourchannel. You can use raws to halt the whois text, but I can't be bothered to write all that smile.

#5617 08/01/03 09:28 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
it dosent work for me.. the whois shows, but it down kick or anything.. shocked

#5618 08/01/03 09:33 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

on @*:JOIN:#YourChannel: whois $nick
raw 319:*:{
  if (($istok($remove($3-,@,+),#test,32) && ($istok($3-,#YourChannel,32)) {
    .raw KICK #YourChannel $2 :Get out of #test, you mangy cur!
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#5619 08/01/03 09:34 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Well I tried it on a clean install, it worked, make sure you replace #channel with the enemy channel, and #yourchannel with your channel. Here is the one I used for testing:
Code:
on @*:JOIN:#collective:{
  set %wnick $nick
  whois $nick
}
raw 319:*:{
  if ( #runescape isin $3- ) && ( %wnick == $2 ) {
    kick #collective $2
  }
}


Hammer's way is better, typical, bah!

#5620 08/01/03 09:35 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
Ok, thanks.. grin


Link Copied to Clipboard