Fix compilation on newer libircclient

As opposed to my other pull request, this one only works on the newer versions where it's actually required.