mIRC Home    About    Download    Register    News    Help

Print Thread
#13500 27/02/03 11:59 PM
Joined: Feb 2003
Posts: 2
S
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2
trying to get a on join like :
Code:
on *:join:#: {
  ctcp version $nick
}
on *:CTCPREPLY:version*:{
  if ($version == MaxX V2.1) {
  notice $nick <msg>
 } 
}
 


thank you for any and all help.

#13501 28/02/03 01:04 AM
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
Try this
Code:
on *:join:#: {  
ctcp $nick version
}
on *:CTCPREPLY:version*:{  
if ($2 == MaxX V2.1) {  
notice $nick <msg> 
 }
}

Last edited by acemiles_ed; 28/02/03 01:47 AM.
#13502 28/02/03 01:23 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
you have the order reversed it should be
/ctcp $nick version

#13503 28/02/03 02:25 AM
Joined: Feb 2003
Posts: 2
S
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Feb 2003
Posts: 2
the on join part works but still having trouble with the
CTCP reply shows up in a Window named
@[s]ctcp.reply
and it doesn't message them or kick them
Code:
 
on *:CTCPREPLY:version*:{
  if ($2 == MaxX V*) {
    notice $nick <msg>
    kick $nick
  }
}
 

Last edited by Security; 28/02/03 02:28 AM.
#13504 28/02/03 03:28 AM
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
Not sure about the custom window problem, but the kick/msg problem should be fixed by using something like this:

Code:
on *:join:#: {  
   ctcp $nick version
   set -u20 %chan $+ $nick $chan
}
on *:CTCPREPLY:version*:{  
if ($2 == MaxX V2.1) {  
   notice $nick <msg>  
   kick %chan $+ $nick $nick
   echo Kicking $nick out of %chan and notifying him!
}
} 

#13505 28/02/03 05:23 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
try this

on *1:CTCPREPLY:Version*: {
if ($2 == MaxX V*) notice $nick <msg> | /kick $chan $nick
window -aC @[s]ctcp.reply | /font @[s]ctcp.reply 12 century gothic | echo @[s]ctcp.reply $knick was kicked!
}

The question is will this work? I have no clue im just thrown something in your direction. If it works great If not then try reading up on your help file about the "/window" option.

#13506 28/02/03 08:43 AM
Joined: Feb 2003
Posts: 9
A
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Feb 2003
Posts: 9
ok.. there is no $chan or $knick in CTCPREPLY ...


check what the other dude said ...

#13507 28/02/03 10:10 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
I wasnt sure if it worked or not i was goin off the top of my head there....ah well

#13508 28/02/03 12:55 PM
Joined: Dec 2002
Posts: 83
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
That is why in my code, I had him set %chan. Then of course in can get $nick from whoever does the CTCPREPLY.

#13509 28/02/03 10:51 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Ok...I see what ya did I totally overlooked the %chan ah well I'll soak up the correction

#13510 01/03/03 03:26 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Quote:
if ($2 == MaxX V2.1) {
$2 will be the first word in the reply, it can't be two words
Code:
  if (*MaxX v* iswm $2-) {
    dostuff
  }
You also need to give the /kick a channel to kick from.


Link Copied to Clipboard