charybdis-ircd / charybdis

Scalable IRCv3.2 server for large, community-oriented networks
GNU General Public License v2.0
231 stars 102 forks source link

rectify comment for Message handler indexes #314

Closed jesopo closed 4 years ago

jesopo commented 4 years ago

given https://github.com/charybdis-ircd/charybdis/blob/baef55657e215997b2c7f0ed257f6ae501030737/include/msg.h#L33-L43

aaronmdjones commented 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.