Parser bug fixes, initial IRC API functions