Truthfully, I would delete this snippet. I had a working version and a non working version way back when and accidentally posted the wrong one. Now it's been so long I have neither, lol.
haha dude, you must be one angry person. FYI this code again is 2 and a half years old and it was never meant to be an advanced web server. If that was the case I would have made an addon rather than snippet, don't you think? Also, the sockread event is only for the initial connection. After that point it is not needed because mIRC then sends the content of the html page to the client and then the connectin is no longer needed (same would happen if the Connection: close parameters are sent in the initial request). Now I know this has it's bugs and at one point did work, and I haven't updated it at all since I originally posted it because it's meant as basically an example for sockets. I know how to do sockets, just check my tutorial in the tutorials section of the forum, buddy :)
First thing. You can\'t kick someone who\'s talking to you in a query. You can do this however:
if ($chan) { kick $v1 $nick blah blah }
else { close -m $nick }
Also, the above would work, but you can use this for shorter code too:
on *:TEXT:*:#: {
var %x = 1,%y
while (%x <= $len($1-)) {
if ($right($left($1-,%x),1) isupper) inc %y
inc %x
}
if (%y > $calc($len($1-) * .5)) { do action... }
}
Although I didn\'t understand what mountaindew was pointing out, you need to get rid of the or (||) symbols in your if statement under the !addleader command.
Ports can be added, plus your script doesn\'t cover closed proxies, only open. Plus, you can add all the ports you need to, and theres alot more ports than that are used by proxies. 65536 ports can be used by a proxy. Next time you comment, please make sure it\'s constructive, thanks :)
A. Why did Nikola Tesla improve electricity from DC to AC?
B. Who said Thomas Edison use the work of Micheal Faraday for each and one of his inventions?
You theories are just plain selfish and posessive. He gave credit to the script owner, and as stated in Hawkee.com\'s rules, is all that is needed. You are just proving yourself a hypocrite for saying this, considering you\'ve made many scripts that have used methods and formats as old as mIRC, pretty much. Really, what your saying is if someone made this script:
on *:JOIN:#: { msg $chan Hi $nick }
and someone remade it to
on *:JOIN:#: { msg $chan Hello $nick }
Honestly, should person B have to ask person A for permission to use the same format? The mimic script is older then i\'ve even known mIRC existed. So why don\'t we just trace back to the person who had the idea and ask them?
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.