mIRC Home    About    Download    Register    News    Help

Print Thread
Custom CTCP Version Reply? #78011 05/04/04 06:59 AM
Joined: Apr 2004
Posts: 10
M
mok Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 10
I was trying to add a custom CTCP version reply to my mIRC, but I am still not getting any luck at all. I checked the mirc.hlp and found this command that were being used, I do not have much knowledge about the scripting language used or how some commands work. Here's the command I use

on 1:CTCPREPLY:VERSION*:/echo $nick testing testing...

I don't get my own Custom CTCP Version reply at all using that, can someone please let me knwo if i am using the right code? Thanks!

Re: Custom CTCP Version Reply? #78012 05/04/04 07:08 AM
Joined: Jan 2003
Posts: 428
P
PastMaster Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 428
Under /help ctcp events you will find this:

Quote:
Note: You can't prevent the standard version reply from being sent.


You cannot change mIRC's version reply without making changes to the executable - which is prohibited by the terms of the license agreement.

PM


IRCnet & DALnet @#travelersinn
:-: IRC for fun and relaxation :-:
Re: Custom CTCP Version Reply? #78013 05/04/04 09:59 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
You can add to the existing reply with something like this:
Code:
CTCP ^*:VERSION: {
    .ctcpreply $nick VERSION I am using <my script name here>
    echo $colour(ctcp) -ta $nick is doing a version check on you
    haltdef
  }
}


As Pastmaster said though, you can't change the original reply without hacking mIRC and even that option is probably not available now. I seem to remember some comments about mIRC ceasing to work if it was modified which is probably a good thing.

Re: Custom CTCP Version Reply? #78014 05/04/04 02:12 PM
Joined: Jun 2003
Posts: 5,024
M
Mentality Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Just a couple o' added notes:

You can view the License Agreement (that you agreed to) by typing /help license agreement in mIRC.

There was a bit of a debate here about the hacking of the mIRC.exe - whilst it doesn't strictly pertain to the changing of the version reply, you get the idea smile

Happy scriptin'!

Regards,


Mentality/Chris
Re: Custom CTCP Version Reply? #78015 06/04/04 03:17 AM
Joined: Apr 2004
Posts: 10
M
mok Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 10
Oh no, I am not gonna change the default CTCP Version reply, I am just trying to add one along with the default one. Anyway, the code works great! Thanks a lot for the help smile

Re: Custom CTCP Version Reply? #78016 06/04/04 10:48 PM
Joined: Feb 2004
Posts: 33
M
masterofpuppets Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Feb 2004
Posts: 33
It does actually say how to do this in the help file. I done that for my mIRC script. It is really simple.

Code:
on 1:VERSION: {
  notice $nick Then your response goes here!
  halt
}


It is a pretty simple little script really.


Adrenaline starts to flow, thrashing all around, acting like a maniac, WHIPLASH!!!