horstefan commented on a Page, Admin/ircop user lister  -  Dec 11, 2012

use this to get iplookup working again:

on *:sockread:iplookup: {
  var %ip | sockread %ip
  if ($regex(%ip,/IP Address<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 3 $regml(1) }
  if ($regex(%ip,/City<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 5 $regml(1) }
  if ($regex(%ip,/State or Region<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 7 $regml(1) }
  if ($regex(%ip,/Country<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 9 $regml(1) }
  if ($regex(%ip,/ISP<\/td><td align='left'><b>(.+) <\/b><\/td><\/tr>/)) { did -ra lus1 11 $regml(1) | did -ra lus1 15 $did(lus,2).seltext | .sockclose iplookup }
}
 Respond  
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.