irc: fix crash on command "/allchan /close"