This worked perfectly on freenode.
However I am having difficulty getting this to work on another server (mainly the twitch.tv irc servers http://www.justin.tv/p/irc_guide)
This is (I think) because they wont recognize the commands unless they have a / in front, ie: /hsave.
After attempting to replace most of the commands, I can get it to at least save the hash file, however I still have issues getting it to work. Any recommendations? Thank you :)