Updated irc-factory version
Checking if the param is defined before we try to use it. Fixes #80