mIRC Homepage
Posted By: Deep3D On Join and kick - 08/01/03 09:09 PM
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
Posted By: Collective Re: On Join and kick - 08/01/03 09:19 PM
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.
Posted By: Deep3D Re: On Join and kick - 08/01/03 09:28 PM
it dosent work for me.. the whois shows, but it down kick or anything.. shocked
Posted By: Hammer Re: On Join and kick - 08/01/03 09:33 PM
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!
  }
}
Posted By: Collective Re: On Join and kick - 08/01/03 09:34 PM
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!
Posted By: Deep3D Re: On Join and kick - 08/01/03 09:35 PM
Ok, thanks.. grin
© mIRC Discussion Forums