Closed jesopo closed 4 years ago
Thanks for spotting this, but the LAST
needs to be removed off of the end of that comment too (as it only serves to indicate the array size).
In other words, UNREGISTERED_HANDLER
is 0, CLIENT_HANDLER
is 1, ... OPER_HANDLER
is 5, and those are the 6 types of handler. LAST_HANDLER_TYPE
thus gets the value 6 to use it as the size of an array to hold the 6 previous types.
given https://github.com/charybdis-ircd/charybdis/blob/baef55657e215997b2c7f0ed257f6ae501030737/include/msg.h#L33-L43