mIRC Homepage
Posted By: Felpipe How do I ?....... - 14/12/03 06:30 AM
Hello I need a script that on Join check the channels that the nick has open in the moment and then compare those channels with some other channel in order to do “something” if the nick is not in these other Channel….
Something like...

On join #CurrentChannel If $nick is not in #ChaNumber2 then blah blah blah

I hope anyone can help me out

Thank You smile
Posted By: LocutusofBorg Re: How do I ?....... - 14/12/03 08:19 AM
on join event (/help on join)
whois nick (/help /whois) -- note that this will cause serious problems in case of a join/part flood or if you are in many channels with high activity unless you build some kind of queueing system
raw event 319 (/help raw events)
if statements (/help if-then-else)
Posted By: Felpipe Re: How do I ?....... - 14/12/03 05:24 PM
thx for trying to help me, I know the on join Remote thing what I dont know is how to make the script see the channels the nick is in and then compare them to some other channel.
I was trying this......

on *:join:#Mp3Trivia:{
if (#Mp3+ = $comchan(nick,1)) {
Goto Ignore
Else kick #Mp3Trivia $nick
}
}
But it Does nothing !! lol :tongue:
Posted By: Rumie Re: How do I ?....... - 14/12/03 07:05 PM
you should loop the channel you on, and use the if-then-else statement to check if $Nick ison #chan2 and then do the command you desire
Posted By: Iori Re: How do I ?....... - 14/12/03 08:07 PM
Code:
on @*:join:#Mp3Trivia:{
  if $nick !ison #Mp3+ { kick # $nick <reason> }  
}
Posted By: LocutusofBorg Re: How do I ?....... - 14/12/03 08:07 PM
Actually he should loop the channels you retrieve from raw 319. In 319, $3- is a list of channels that the user is on (that aren't +s anyway). A simple loop will read these one at a time.
Posted By: Felpipe Re: How do I ?....... - 15/12/03 12:04 AM
Thank you to all of you for helping me out smile
Posted By: neophyte Re: How do I ?....... - 15/12/03 10:32 AM
If the channel you want to check they are in is one you are in, then use $comchan and a while loop instead of using /whois.
Posted By: LocutusofBorg Re: How do I ?....... - 16/12/03 06:18 AM
You should read the original question more carefully - he wants to loop channels someone else is in, not channels they both are in.
© mIRC Discussion Forums