fix a null pointer deref, preparations for irc in the namescache