mIRC Home    About    Download    Register    News    Help

Page 1 of 2 1 2 >
Topic Options
#186027 - 16/09/07 10:19 PM On CTCP
Stefan_Leroux Offline
Pikka bird

Registered: 09/06/03
Posts: 17
hey folks, I was wondering if there is a way to halt the default action on CTCP

eg
On 1:CTCP:FINGER:{
haltdef
ctcpreply FINGER If you want to who I am, just ask me
}

I cant seem to find anything, but I'm reasonably sure that I've gotten this to work before
Cheers all
Stefan Leroux


Edited by Stefan_Leroux (17/09/07 12:15 AM)
_________________________
Swift as the Wind
Silent as a Forest
Fierce as Fire
Immovable as a Mountain

Top
#186028 - 16/09/07 10:22 PM Re: On CTCP [Re: Stefan_Leroux]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
You aren't allowed to change the default CTCP VERSION reply.

Top
#186033 - 16/09/07 10:57 PM Re: On CTCP [Re: SladeKraven]
noMen Offline
Vogon poet

Registered: 17/01/06
Posts: 111
You could ignore all ctcp's by adding address *!*@* to the ignore list of the addressbook and checking the ctcp ignore option. But in that case you cannot send a reply.

Top
#186035 - 16/09/07 11:26 PM Re: On CTCP [Re: noMen]
Stefan_Leroux Offline
Pikka bird

Registered: 09/06/03
Posts: 17
Sorry, my example was only meant to be that. I was more looking to change the Finger reply, since atm it gives out my name, but I wanted to make it act with a script to instead do something such as my current song kinda thing.
No matter if its not possible, thanks guys
_________________________
Swift as the Wind
Silent as a Forest
Fierce as Fire
Immovable as a Mountain

Top
#186038 - 16/09/07 11:39 PM Re: On CTCP [Re: Stefan_Leroux]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
its possible.


for other you can use this:

Code:
CTCP *:*:* {
if ($1 == FINGER) { .ctcpreply $nick $1 YOUR TEXT | halt }
if ($1 == USERINFO) { .ctcpreply $nick $1 YOUR TEXT | halt }
if ($1 == CLIENTINFO) { .ctcpreply $nick $1 YOUR TEXT | halt }
if ($1 == PAGE) { .ctcpreply $nick $1 YOUR TEXT | halt }
if ($1 == TIME) { .ctcpreply $nick $1 YOUR TEXT | halt }
if ($1 == PING) { .ctcpreply $nick $1 YOUR TEXT | halt }
}


Edited by WideOpenSpace (17/09/07 12:03 AM)
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#186040 - 16/09/07 11:50 PM Re: On CTCP [Re: WideOpenSpace]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Helping someone remove the default VERSION reply, when it's not meant to be removed or changed. Tut tut.

Top
#186042 - 16/09/07 11:53 PM Re: On CTCP [Re: SladeKraven]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
its still his choise at the end
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#186043 - 16/09/07 11:56 PM Re: On CTCP [Re: WideOpenSpace]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
It was your choice, you were the one who said it. Why do you think it can't be halted, Khaled doesn't want it changed. Even when I said in an earlier post it isn't to be changed. Please read this carefully.

Top
#186045 - 17/09/07 12:03 AM Re: On CTCP [Re: SladeKraven]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
happy ?
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#186046 - 17/09/07 12:06 AM Re: On CTCP [Re: WideOpenSpace]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
I was never unhappy, but someone else may have been. I was just displeased.

Top
#186047 - 17/09/07 12:09 AM Re: On CTCP [Re: SladeKraven]
Stefan_Leroux Offline
Pikka bird

Registered: 09/06/03
Posts: 17
Thank you WideOpenSpace, that works perfectly.

SladeKraven: I can see you point of view. Obviously my example was a bad one, but if it helps (and you choose to believe me) I can guarantee that I dont intend to stop, or alter the Version CTCP, it is only for the CTCP Finger I was looking.
- Have now read through your link about stopping the version being a violation of mIRC agreement. Is this also the case with finger?


Edited by Stefan_Leroux (17/09/07 12:12 AM)
_________________________
Swift as the Wind
Silent as a Forest
Fierce as Fire
Immovable as a Mountain

Top
#186048 - 17/09/07 12:12 AM Re: On CTCP [Re: Stefan_Leroux]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Originally Posted By: Stefan_Leroux

SladeKraven: I can see you point of view. Obviously my example was a bad one, but if it helps (and you choose to believe me) I can guarantee that I dont intend to stop, or alter the Version CTCP, it is only for the CTCP Finger I was looking.


Originally Posted By: Stefan_Leroux

On 1:CTCP:VERSION:{
haltdef
ctcpreply Version If you want to know what I'm using, just ask me
}


I believe you when you say you wanted to change the FINGER reply. I have no idea where i got VERSION from. I must have misread your initial post.

Edit: If you are able to use haltdef then I assume it's not a violation. But I'm not entirely sure on that.

Top
#186049 - 17/09/07 12:17 AM Re: On CTCP [Re: SladeKraven]
Stefan_Leroux Offline
Pikka bird

Registered: 09/06/03
Posts: 17
Ok, I like that assumption, and I've edited the original post. I can understand the confusion, maybe should have just made an example of what I wanted in the very first place.

Thanks to all
_________________________
Swift as the Wind
Silent as a Forest
Fierce as Fire
Immovable as a Mountain

Top
#186050 - 17/09/07 12:21 AM Re: On CTCP [Re: Stefan_Leroux]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
if finger would be illegal then it would be locked or just forced like version is.

since its not, i doubt its illegal.
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#186052 - 17/09/07 12:32 AM Re: On CTCP [Re: WideOpenSpace]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
This isn't a reply to anyone, but what i know it's not a bad thing to remove the version reply that are scripted, how ever for a fev years ago many people hexed mirc to remove the version reply, i belive that wasnt that good, but since you can halt the default output relative easy i don't think it's any problem, if Khaled didn't want you to, then i think he would have forced mirc to send a version reply even due you halt the default one, and i have seen many exmaple on this, one is that the coder ignored all ctcp's, then created a new signal that returned the ctcp reply he want it to send, and i think it's still avalibe for download on a respectable scripting site.
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#186153 - 18/09/07 10:10 AM Re: On CTCP [Re: sparta]
SplitFire Offline
Ameglian cow

Registered: 03/09/07
Posts: 32
Loc: Neverlands
I think halting a default reply (version, etc) is not a violation, 'coz simply, Khaled coded mIRC with the "ability" to hide default replies

If he wanted, he could have easily programmed mIRC to "ignore" the /halt command if inserted within a VERSION ctcp smile
_________________________
on me:*:JOIN:#: { .raw part # $crlf join # }

Top
#186166 - 18/09/07 12:25 PM Re: On CTCP [Re: SplitFire]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Allowed or not, I think mIRC's a great program and I'm happy to advertise that I'm using it if people check my version. I don't see any reason to hide it. Just my opinion, of course.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#186168 - 18/09/07 12:53 PM Re: On CTCP [Re: sparta]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
It's not that easy to halt the version reply.
You can't just use the ctcp event and halt it, you need to use debug to catch a few things, it's not that simple to the newbie scripter at all. And why you say "if Khaled didn't want you to, then i think he would have forced mirc to send a version reply even due you halt the default one"

Then why did he start adding cyclic redundancy checks to render mIRC useless when someone tampered with the version reply, or any other internal code?

Top
#186176 - 18/09/07 04:26 PM Re: On CTCP [Re: vexed2]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
I havent seen anything that say you arent allowed to in any files or pages on the net, what i know the only thing he don't like is when you edit the mirc.exe it self, as i wrote befor it was a populare thing to hex out the version reply, even change the default icons inside mirc.exe, and that's not allowed.
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#186177 - 18/09/07 05:50 PM Re: On CTCP [Re: sparta]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
you've completely contradicted yourself in that whole post. laugh

It used to say "Editing the mIRC version reply, huh? :)"

That got removed, and cyclic redundancy checks got added to stop morons from removing the version reply and such like, because some people were using mIRC for illegal activities other than chatting.
I personally think khaled wanted to stop masses of bots from doing their illegal things on IRC
That's why you find some servers now won't let you connect if you don't have a version reply of most of the commonly used clients, including this one.



Top
Page 1 of 2 1 2 >