that message is produced by lscgid binary, you should not get a message like that if you run "irc.cgi" from command line, unless you overwrite irc.cgi with lscgid binary.
Switch back to Apache, if it does not work with Apache, it wont work with LiteSpeed. You have to fix irc.cgi instead.