Jethro commented on a Page, Simple Channel Greet System  -  May 25, 2011

Scakk, you may get an error saying the hash table doesn't exist before loading upon connection. (This error will occur if someone has his or her mIRC closed or exited) My suggestion is to make it like so:

on *:connect:{ 
 if (!$hget(greets)) hmake greets 100
 if ($file(greets).shortfn)) hload greets $v1
}

You sort of don't need this bit under the first text event:> $iif(!$hget(Greet), hmake -s Greet 100)You already have the -m switch specified for the /hadd command to be made if the hash table doesn't exist. The default table size is already 100 slots. And it doesn't matter how big or small the table size is, as the space is going to be unlimited. Though the bigger the size, the faster hash table works.

Finally, and this is unimportant, you can congregate those text events as one.

 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.