|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
Maybe an identifier for checking if the user us a registered version of mirc (or if anyone know a way how to check it can he/she please tell me how)
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
he means if a user other than himself is registered(im presuming), considering he should know if he registered or not :tongue:
new username: tidy_trax
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
Last edited by MTec89; 11/10/03 01:07 AM.
|
|
|
|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
hmm do you know the key where mirc save that information?
(i talk about if the user paid money for mirc)
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
ya, ill try to set this up for you..:)
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
it wont work(unless they agree to have a script that checks their own registry and then gives you an answer).
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
well i know how to read/write to registry but i don't know the key where mirc saves that (I don't want to change something there, i just want to block user who use a unregistered copy of mirc)
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
works... no need to thank me. just type /isreged
alias isregister {
var %a = regread $+ $ticks
.comopen %a WScript.Shell
if $comerr { return ERROR }
if !$com(%a,RegRead,3,bstr,$1) {
.comclose %a
return ERROR
}
var %b = $com(%a).result
.comclose %a
return OK %b
}
alias isreged {
if (*OK* iswm $isregister(HKEY_CURRENT_USER\Software\mIRC\UserName\)) { echo -a registered }
else { echo -a not registered }
}
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
nm, i thought you wanted something like: on !*:join:#:{ if (!$isregister($nick)) { ban -k $nick } }
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Just a note about using WScript, it's not available on all versions of Windows. So if you use that script for yourself, that's fine, but if this is for a script you'll be distributing, don't expect it to work for everyone.
|
|
|
|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
Well i've never saw a windows version without wscript.exe
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
Hoopy frood
Joined: Jul 2003
Posts: 742 |
and i'v no idea what wscript.exe is
|
|
|
|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
hmm that's for vbs and i always thought wshell.script is from that file
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Windows Script Host does NOT come with Windows95. It only comes with 98 and above and NT4 and above. So anyone who is using win95, that script will fail.
|
|
|
|
Joined: Dec 2002
Posts: 24
Ameglian cow
|
OP
Ameglian cow
Joined: Dec 2002
Posts: 24 |
well i think there must be a day supporting old windows versions should stop or should i even support win3.11?
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Well supporting win3.11 wouldn't make sense since mIRC doesn't run on win3.11, however, mIRC does run on win95, and many people do use win95. I mean, it's completely up to you, I'm just saying expect some "this doesn't work" emails.
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
An $isregister identifier will probably never be added to mIRC, considering the lack of impact one's state of registration has on a script's ability to function.
The only reason I could see $isregistered being requested would be to aid in the stealing of registration codes, or to distribute a script that automatically "registers" a user's client with an illegal key.
- Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
i just want to block user who use a unregistered copy of mirc This will never be possible because it is simply against privacy laws to gain information about someone else's system without their express permission. To do what you want, you would have to access someone else's registry (major no no, think of the implications if some dumbass would rework the code so he could write to the registry as well as read). The only way I see it can be easily done is via the VERSION reply, but then you've still got people who removed that, and again the privacy issues. I for one may have a registered mIRC, but it's no one's business whether I do or not. Also -- you wanna block people without a regged mIRC. How about those people still in their trial? They are using their non-regged version perfectly legit. So either there would have to be a third response (regged,unregged,trial), or the trial version should just return the regged response. Lastly, a person who has used a crack has for all purposes a registered copy of mIRC, yet he didn't actually register it. There is no way to tell the difference...
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
This will never be possible because it is simply against privacy laws to gain information about someone else's system without their express permission. not in the US. In the US, installing the software on your system grants it access to view any information that is contained on your system. The only privacy law that is in play there is it can't SEND the information out unless you give it permission. And, in any case, whether you registered mIRC or not isn't exactly private information. Private information includes things like address, name, credit card info, I doubt any judge would say mIRC registration status is protected information. Think about it, if $isregistered is "private" couldn't $time be "private" as well? If someone knows what time my PC says they get a rough idea of where I live. Then of course mIRC sends my IP out to the server (of course it has to, but is there anything in the mIRC license that says I must agree to that?) So if you're going to tell me $isregistered violates privacy laws, then I guess mIRC as a whole would violate them.
|
|
|
|
|