mIRC Home    About    Download    Register    News    Help

Print Thread
#147257 16/04/06 05:03 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Hi, i've got a "on join version checker"
& when it reply's i want to form a command... :

Code:
on ctcp:*:*: {
  if ($nick != blabla) && ($nick != boem) && ($nick != lala) { msg $nick Version reply successfull. }
}

It just aint working the reply... (i just want it like this.)

Last edited by PhyxiuS; 16/04/06 05:04 PM.
#147258 16/04/06 05:14 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
the ctcp doesnt use the "on" prefix
you also had ctcp where the match level belongs rather than as an event

try this
Code:
ctcp *:version:*:{ 
if ($nick != blabla) && ($nick != boem) && ($nick != lala) { msg $nick Version reply successfull. }
 }

#147259 16/04/06 05:17 PM
S
schaefer31
schaefer31
S
Code:
on *:JOIN:#Channel:{
  if (($nick != blabla) && ($nick != boem) && ($nick != lala)) {
    set %version.onjoin 1
    .ctcp $nick VERSION
  }
}

on *:CTCPREPLY:VERSION*:{
  if (%version.onjoin) { 
    msg $nick Version reply successful.
    unset %version.onjoin
  }
}

#147260 16/04/06 05:33 PM
Joined: Oct 2005
Posts: 126
P
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
P
Joined: Oct 2005
Posts: 126
Works fine, thankx! wink

#147261 17/04/06 04:51 AM
D
DaveC
DaveC
D
This set %version.onjoin 1 needs to be set -u10 %version.onjoin 1 or some amount of timeout time, since you migth never get a version reply from a client, and it would remain set to 1.

#147262 17/04/06 05:13 AM
S
schaefer31
schaefer31
S
Good call. I didn't think of that.


Link Copied to Clipboard