Show
Ignore:
Timestamp:
08/10/07 21:34:00 (3 years ago)
Author:
eevee
Message:

Added an IP hash to the shoutbox listing so non-admins can tell when two anonymous idiots are the same person.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Utils.pm

    r266 r283  
    33use Socket qw//; 
    44use List::Util qw/first/; 
     5use Digest::SHA1 qw/sha1_hex/; 
    56 
    67=head1 NAME 
     
    125126sub inet_aton { unpack 'N*', Socket::inet_aton(shift) } 
    126127 
     128# name comes from what imageboards do, but really it's just a short hash 
     129sub tripcode { substr sha1_hex(shift), 0, 12 } 
     130 
    127131=head1 AUTHOR 
    128132