renguard locator irc scripts [message #135038] |
Sat, 29 January 2005 21:14 |
|
ghostSWT
Messages: 262 Registered: December 2003
Karma: 0
|
Recruit |
|
|
I'm not sure if it's just me but the scripts i am using was working fine then about 5 days ago it stoped i modified it to work and i just saw today it's not working again and i had to put it to what it was originaly.
i'm using this irc script on *:sockopen:rglocate: {
sockwrite -n $sockname GET /_scripts/rglocate.php?q= $+ %rName $+ &limit=2 HTTP/1.1
sockwrite -n $sockname Host: renguard.com $+ $crlf $+ $crlf
}
on *:sockread:rglocate: {
if ($sockerr > 0) return
:nextread
sockread %temprglocate
if ($sockbr == 0) return
if (%temprglocate == $null) %temprglocate = -
if (%locateline == yes) {
/write -c rglocate.txt %temprglocate
unset %locateline
}
else /write rglocate.txt %temprglocate
goto nextread
}
on *:sockclose:rglocate: {
if ($read(rglocate.txt, 1) == HTTP/1.1 200 OK) {
if (No results found. isin $read(rglocate.txt, 11)) {
/msg %rName is not Runing Renguard.
}
else if (returning isin $read(rglocate.txt, 11)) {
if ($gettok($read(rglocate.txt, 12),2-,32) == --- Idle) { /msg $gettok($read(rglocate.txt, 12),1,32) is running RG }
else if ($gettok($read(rglocate.txt, 13),2-,32) == --- Idle) { /msg $gettok($read(rglocate.txt, 13),1,32) is running RG }
else { /msg %rName not found, #1 try typing the full name }
}
}
}
my problem that the text file that sockread makes is not the same. a week ago it would make a file look like HTTP/1.1 200 OK
Date: changed form original
Server: Apache/2.0.46 (Red Hat)
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
-
2D
<pre>Returning 1 results...
ghostSWT --- Idle
-
0
-
then a few days ago it started making this one take a look at the way the name and --- Idle are no longer on the same line
HTTP/1.1 200 OK
Date: changed form original
Server: Apache/2.0.46 (Red Hat)
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.2
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
-
2D
<pre>Returning 1 results...
ghostSWT
-
--- Idle
-
0
-
and i guess today it's back to what it was b4, is that just my crapy scrirp or what?
PS i know it only looks if the person is idling but that's the way i want it, the server this is 4 is not renguarded so i only need to see if they are idling or not.
|
|
|
renguard locator irc scripts [message #135629] |
Tue, 01 February 2005 18:32 |
|
ghostSWT
Messages: 262 Registered: December 2003
Karma: 0
|
Recruit |
|
|
anyone? i'm willing to accept any comment like no I didn't have any !rg irc scripts problems or no we didn't do anything to renguard network that would cause that or yes i had same problem....
|
|
|
renguard locator irc scripts [message #135676] |
Tue, 01 February 2005 22:21 |
|
Crimson
Messages: 7429 Registered: February 2003 Location: Phoenix, AZ
Karma: 0
|
General (5 Stars) ADMINISTRATOR |
|
|
I'm not sure what the deal was... maybe my web server was doing something different, but I didn't change anything to fix it.
I'm the bawss.
|
|
|
|
|