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... }
}
Raichu,
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?