mIRC Home    About    Download    Register    News    Help

Print Thread
#63993 14/12/03 06:30 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
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


-------------------------------
Felpipe@Gmail.com
#63994 14/12/03 08:19 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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)


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#63995 14/12/03 05:24 PM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
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:


-------------------------------
Felpipe@Gmail.com
#63996 14/12/03 07:05 PM
Joined: Oct 2003
Posts: 37
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Oct 2003
Posts: 37
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

#63997 14/12/03 08:07 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on @*:join:#Mp3Trivia:{
  if $nick !ison #Mp3+ { kick # $nick <reason> }  
}

#63998 14/12/03 08:07 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#63999 15/12/03 12:04 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
Thank you to all of you for helping me out smile


-------------------------------
Felpipe@Gmail.com
#64000 15/12/03 10:32 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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.


--------
mIRC - fun for all the family (except grandma and grandpa)
#64001 16/12/03 06:18 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
You should read the original question more carefully - he wants to loop channels someone else is in, not channels they both are in.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard