add handling for libircclient errors generated by scripts