The only thing is, if you use hash tables, you have to hsave and hload 'em, or everything the script counts is going to be lost.
Did I miss out on something? Why $2 == $nick?