mIRC Homepage
Posted By: svcdman version - 06/06/04 06:28 PM
I am having difficulties ingetting version replies sent to an isolated window instead of active window. Is there a way to do this please and if so could someone help me with it. I am new to scripting as you can see with this request...
Posted By: Artwerks Re: version - 06/06/04 07:29 PM
The example given is the help file is what you're looking for, the on ctcpreply version smile
If you need more explanation about it, I can give you a code example on how to use it, but I think it's all you need.

"on CTCPREPLY

The on CTCPREPLY event triggers when a user sends a standard ctcp reply to a ctcp that you initiated.


Format: on <level>:CTCPREPLY:<matchtext>:<commands>
Example: on 1:CTCPREPLY:VERSION*:/echo $nick is using IRC client: $1-"
Posted By: svcdman Re: version - 06/06/04 09:33 PM
have used that and it works after a fashion the problem is i dont want the reply to version to show in active window at all, only in a seperate window. Is there anyway to do this do you know of ?
Posted By: Collective Re: version - 06/06/04 10:45 PM
If you use /halt or /haltdef the reply will not be shown (as long as another script is not showing it).

Code:
on *:CTCPREPLY:PING *:{
  echo -a Ping reply recieved
  halt | ;Commands must come before the halt
}

or
Code:
on *:CTCPREPLY:PING *:{
  haltdef
  echo -a Ping reply recieved
}
Posted By: Iori Re: version *DELETED* - 06/06/04 11:11 PM
Post deleted by Iori blush
Posted By: Collective Re: version - 06/06/04 11:16 PM
on CTCPREPLY triggers when someone sends a reply to you, this event can be halted to change the way the text is displayed (or block it altogether). The event that can't be halted is when someone ctcp's you (so you can't halt the default reply).
© mIRC Discussion Forums