/hlist Hash Table List

By raccoon on May 09, 2010

/hlist -- Hash Table List

Simple alias that displays hash tables and their contents. This should really be built into mIRC.

Installation Instructions

Paste this into the Aliases section of the scripting window (Alt+R) in mIRC.

Enjoy.

  • Raccoon/EFnet
; Usage: /hlist [name/n]
; Displays the Hash Tables currently loaded in mIRC.
; If a table name or number is specified, it will list the items from that table.

hlist { ; 21-Apr-2010 by Raccoon/EFnet
  echo -aic info -
  if ($1 == $null) {
    var %i = 1, %n = $hget(0)
    WHILE %i <= %n {
      echo -aic info * %i $+ : $hget(%i) ( $+ $hget(%i,0).item $+ / $+ $hget(%i).size $+ )
      inc %i
  } } 
  else {
    var %t = $hget($1)
    var %i = 1, %n = $hget(%t,0).item
    WHILE %i <= %n {
      var %item = $hget(%t,%i).item, %data = $hget(%t,%item), %unset = $hget(%t,%item).unset
      echo -aic info * $base(%i,10,10,3) $+ : %t $+ : $iif(%unset,[[ $+ %unset $+ s]) %item = %data
      inc %i
  } }
  echo -aic info End of /HLIST: %n item(s).
  echo -aic info -
}

Comments

Sign in to comment.
jsg55   -  May 10, 2010

pretty cool script raccoon nice job :)

 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.