well here to list commands ill do a simple loop to read commands

Code:

on *:TEXT:*:#: {
if ($1 == !listcmds) {
var %listcmds.inc = 1
msg $nick Listing Commands...
while (%listcmds.inc <= $hget(cmd,0).item) {
msg $nick $hget(cmd,%listcmds.inc).item
inc %listcmds.inc
}
}
}