|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
How to ignore ctcp's? and just get the ping to reply?
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
yez,,, but i need the ping to reply and work.... but ignore all other ctcps..
|
|
|
|
Joined: Feb 2003
Posts: 10
Pikka bird
|
Pikka bird
Joined: Feb 2003
Posts: 10 |
try something like:
ctcp *:*:*: {
if ($1 == PING) {
blah
}
}
..should halt all other ctcps and just execute "blah" when you re pinged. (if the imaginary "else halt" that mirc should "add" doesn t work for some reasons just try
...
if ($1 != PING) { halt }
else {
blah
}
...
*shrugs*
return is the movement of sense.
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
hmm, i don't get it to work..
|
|
|
|
Joined: Jan 2003
Posts: 150
Vogon poet
|
Vogon poet
Joined: Jan 2003
Posts: 150 |
works fine here
ctcp *:*:*:{
if ($1 == PING) { echo 4 -a PING check $2- }
halt
}
Go ahead, jump. 100,000 lemmings can't be wrong.
|
|
|
|
Joined: Dec 2002
Posts: 483
Pan-dimensional mouse
|
OP
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483 |
it need's to block version, time and finger! help me!!
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
You can't block a ctcp version via a script.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
CTCP *:*:*:{
if ($1 == PING) {
echo $colour(ctcp) -ta PING $duration($calc($ctime - $2-))
}
else {
halt
}
haltdef
} This blocks all but the standard version reply which is flood-protected anyway.
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
well no u cant block a version via a script aside from ignoring it but ......
i have a script that will infact do what the user is asking ... but i will not post it due to the fact it can also be used to alter a version reply.
D3m0nnet.com
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Yes, there are ways it could be done, but they are sorta trickery. I know of one way that will work, but only in 6.1.
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
actually ive used it in several versions of mirc and not at all in 6.1 it is a purely scripted method with no dlls of altering default ctcp events. if youd like a look at the method its dirived from a scriptlet i found in mircscripts site as an alternative to the motfv dll.
D3m0nnet.com
|
|
|
|
|
|