There's been some mention on the tracker recently regarding `func-arity' and misguided expectations. If it's important to stamp out misuses in the Emacs tree, then I suppose the one in `url-irc' qualifies. The attached patch should fix it, I think. Technically, this bug was introduced in Emacs 29.1, but it's probably not worth disturbing the release branch over.