$hget(table,item) doesn't return a label, it returns the
value that matches
item stored in
table.
You have a hash tabled called
christest.
In that hash table, you have an item called
autojoin1.
The value stored in that item is
#lobby,#Praise-Him,#Never-Silent.
You can think of hash tables as .ini files with a single [section], or as an ini .file with the hash table name as the [section]
[christest]
autojoin1=#lobby,#Praise-Him,#Never-Silent
awaynick=Chris-AwayUsing this concept as a model, here are some ways to use
$hget and the values they will return:
- /hmake christest
/hadd christest autojoin1 #lobby,#Praise-Him,#Never-Silent
/hadd christest awaynick Chris-Away - $hget(christest,0) will return 2 because there are two items in that hash table
- $hget(christest,1).item will return autojoin1
- $hget(christest,1) will return #lobby,#Praise-Him,#Never-Silent
- $hget(christest,autojoin1) will return #lobby,#Praise-Him,#Never-Silent
- $hget(christest,2).item will return awaynick
- $hget(christest,2) will return Chris-Away
- $hget(christest,awaynick) will return Chris-Away
//NICK $hget(christest,awaynick)
//JOIN $hget(christest,autojoin1)
I hope this clears up the question.