added some lua interfaces for irc functions