mIRC Home    About    Download    Register    News    Help

Print Thread
#47586 06/09/03 12:05 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
How to ignore ctcp's? and just get the ping to reply?

#47587 06/09/03 12:06 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
/ignore -t *


new username: tidy_trax
#47588 06/09/03 12:09 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
yez,,, but i need the ping to reply and work.... but ignore all other ctcps..

grin

#47589 06/09/03 12:25 PM
Joined: Feb 2003
Posts: 10
Z
Pikka bird
Offline
Pikka bird
Z
Joined: Feb 2003
Posts: 10
try something like:
Code:
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
Code:
...
if ($1 != PING) { halt } 
else { 
blah
}
...

*shrugs*


return is the movement of sense.
#47590 06/09/03 03:06 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
hmm, i don't get it to work..

#47591 06/09/03 03:52 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
works fine here grin

Code:
ctcp *:*:*:{
  if ($1 == PING) { echo 4 -a PING check $2- }
  halt
}
 


Go ahead, jump. 100,000 lemmings can't be wrong.
#47592 06/09/03 05:18 PM
Joined: Dec 2002
Posts: 483
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 483
it need's to block version, time and finger! help me!!

#47593 06/09/03 05:31 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
You can't block a ctcp version via a script.

#47594 06/09/03 05:59 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Code:
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.

#47595 06/09/03 06:02 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
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
#47596 06/09/03 06:11 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
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.

#47597 06/09/03 07:52 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
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

Link Copied to Clipboard