Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Archived Forums » RenGuard Client » renguard locator irc scripts
renguard locator irc scripts [message #135038] Sat, 29 January 2005 21:14 Go to next message
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 Go to previous messageGo to next message
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 Go to previous messageGo to next message
Crimson is currently offline  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.
renguard locator irc scripts [message #135683] Tue, 01 February 2005 23:15 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

No, it still works on my server.

My comment: Make more flexible irc scripts Wink


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
renguard locator irc scripts [message #135687] Wed, 02 February 2005 00:22 Go to previous message
ghostSWT
Messages: 262
Registered: December 2003
Karma: 0
Recruit
ok ty, that's all i wanted to know
Previous Topic: Beta Testing
Next Topic: I can even download it!
Goto Forum:
  


Current Time: Sun Nov 10 23:58:54 MST 2024

Total time taken to generate the page: 0.00986 seconds