Page 1 of 1

/Stats G output questions

Posted: Sat Aug 20, 2005 12:02 pm
by DRam3500
Hello. I have a question regarding the /stats G outputs. When you perform a /stats G, you get something that looks like this:

Z *@xx.xxx.xxx.xxx 1600225 991775 SomeBot![email protected] User has been banned from YourIRCNetwork.net: Open proxy detected on your host; mass cloning. -- Ban ID: 986101070A-GZ. Please email [email protected] with the stated Ban ID for more information.
[End /STATS (G) report]

Well, my question is: What do the two numbers (1600225 and 991775 in the above example) represent, and how do you decode or simplify it so that it is readable (by using mIRC or an mIRC script).

Thanks

Posted: Sat Aug 20, 2005 12:18 pm
by Dukat
The first number says how long until it expires (in seconds) or 0 if it never expires.
The second number is how long the ban has been active (how long ago it was set) - again in seconds.

Re: /Stats G output questions

Posted: Sun Aug 21, 2005 12:06 am
by DRam3500
Alright, thank you very much Dukat ;)... Now all I've gotta do is figure out how to get that into hours:minutes:seconds format.. hmmm... Should be easy.. Thanks again

Posted: Sun Aug 21, 2005 2:02 am
by Jason
mIRC?

//echo Banned for $duration(timehere)

Posted: Sun Aug 21, 2005 3:00 am
by Stealth
I use (for mIRC):

Code: Select all

raw 223:*:
  if ($2 isincs GZ) { inc %stats }
  if ($2 isin GZ) { 
    echo -s 4G $+ $iif($2 == Z,Z) $+ line: $3 by $iif($me isin $6,4) $+ $6 $+ 
    echo -s Set $duration($5) ago, $iif($4 == 0,never expires,expires in $duration($4)) 
    echo -s Reason: $7-
    linesep
    halt 
  }
  linesep
}
Typing "/help $duration" will get more options for $duration.