Jonathan Coveney jcoveney@gmail.com wrote:
if you try to use /mode and are an oper but OperCanUseMode is not set, it could say "You can't do this because this value isn't set."
I guess we might also change the deafault to 'yes'. But sending a more specific error message is certainly doable as well.
In general, more robust errors like that would be great. if you type /wallops, it yells at you what the proper syntax is. I don't know how much effort this would involve (although the number of commands is small), but in general just some basic usability stuff like that would be awesome. I'd even be willing to help!
Doing this should be fairly simple. Should be enough to add a new, more specific error constant, e.g.
#define ERR_WALLOPS_NEED_MSG "461 %s %s :requires message text as argument"
and then have IRC_WALLOPS() use that instead of the default ERR_NEEDMOREPARAMS_MSG.