Public feed
#888855
[11:44:39] <10Mr_Bloggins> i read ur socket tutorial
[11:44:44] <10Mr_Bloggins> now im makin a stats script
[11:44:50] <10Mr_Bloggins> but i dont know how to retrive the next line
[11:48:14] <04@Chessnut> Mr_Bloggins, to read the next line, just use another /sockread %var
[11:49:30] <02+Crehl> Mr_Bloggins, doing what Chessnut said is probably the easiest way to do it
[11:51:20] <10Mr_Bloggins> umm
[11:51:24] <10Mr_Bloggins> it didnt work chessnut
[11:51:31] <10Mr_Bloggins> it just did the same line twice
[11:59:55] <10Mr_Bloggins> http://pastebin.ca/888777
[12:01:23] <04@Chessnut> You don't need the second if statement
[12:01:55] <04@Chessnut> The first one is enough to match all the lines in the source
[12:02:18] <04@Cameron> if you remove the sockclose
[12:02:21] <04@Cameron> it will read through every line
[12:04:41] <04@Chessnut> You could use something like: var %var | sockread %var | if (!$sockbr) { sockread %var | while (%var) { echo -a Value = %var | sockread %var } }
[12:05:04] <04@Chessnut> Then close the socket after that
[12:05:23] <10Mr_Bloggins> i dont get that
[12:05:24] <10Mr_Bloggins> :S
[12:05:43] <04@Chessnut> if (!$sockbr) means it will match after the headers have been sent
[12:06:02] <04@Chessnut> (The crlf that delimits the end of the headers and the start of the page content)
[12:06:47] <04@Cameron> http://pastebin.ca/888783 something along the lines of that
[12:06:54] <02+Crehl> Mr_Bloggins, you only need the second part of the if staement
[12:07:00] <04@Cameron> my bad
[12:07:16] <04@Cameron> http://pastebin.ca/888783
[12:07:20] <04@Cameron> something along the lines of that
[12:07:28] <04@Cameron> made an error on line 25 :D
[12:10:48] <10Mr_Bloggins> i just wanna know how to read the next line NOTE: Same question again.
[12:27:52] <10Mr_Bloggins> Chessnut
[12:28:08] <10Mr_Bloggins> could you tell me what im doing wrong in this script to make it freeze my mirc?
[12:28:13] <10Mr_Bloggins> http://pastebin.ca/888804
[12:28:58] <04@Chessnut> You're only inc'ing the var when the if statement is true
[12:29:13] <04@Chessnut> Meaning when it's false, you don't inc the var, and the script goes into an infinite loop
[12:44:37] <10Mr_Bloggins> Isnt #mSL and #mIRC supposed to be HELP channels?
[12:44:46] <10Mr_Bloggins> <(-.-)>
[12:45:54] * Mr_Bloggins (~Mr_Bloggi@Swift-C4EBB6EE.abhsia.telus.net) has left #mSL ( going to start a new mirc help channel where we actually help people instead of ignoring them)