mIRC Home    About    Download    Register    News    Help

Print Thread
version #85664 06/06/04 06:28 PM
Joined: Jun 2004
Posts: 2
S
svcdman Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Jun 2004
Posts: 2
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...

Re: version #85665 06/06/04 07:29 PM
Joined: May 2003
Posts: 79
A
Artwerks Offline
Babel fish
Offline
Babel fish
A
Joined: May 2003
Posts: 79
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-"

Re: version #85666 06/06/04 09:33 PM
Joined: Jun 2004
Posts: 2
S
svcdman Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Jun 2004
Posts: 2
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 ?

Re: version #85667 06/06/04 10:45 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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
}

Re: version *DELETED* #85668 06/06/04 11:11 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Post deleted by Iori blush

Last edited by Iori; 06/06/04 11:27 PM.
Re: version #85669 06/06/04 11:16 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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).