[READ-ONLY] Mirror of https://github.com/VibeDevelopers/Comet.
0

Configure Feed

Select the types of activity you want to include in your feed.

Add user_welcome hook This hook is executed when the registration burst is being sent to a new local user, after sending RPL_ISUPPORT but before sending LUSERS output. Many IRCv3 specifications use this timing as the point to send additional information during registration bursts, so having an easy hook point to do that makes implementing such specs possible.

TwinUsers (Jul 27, 2026, 12:09 AM +0100) fef80ef9 e6293078

+16
+1
include/hook.h
··· 65 65 extern int h_message_tag; 66 66 extern int h_message_handler; 67 67 extern int h_parse_end; 68 + extern int h_user_welcome; 68 69 69 70 void init_hook(void); 70 71 int register_hook(const char *name);
+2
ircd/hook.c
··· 76 76 int h_message_tag; 77 77 int h_message_handler; 78 78 int h_parse_end; 79 + int h_user_welcome; 79 80 80 81 void 81 82 init_hook(void) ··· 105 106 h_message_tag = register_hook("message_tag"); 106 107 h_message_handler = register_hook("message_handler"); 107 108 h_parse_end = register_hook("parse_end"); 109 + h_user_welcome = register_hook("user_welcome"); 108 110 } 109 111 110 112 /* grow_hooktable()
+1
ircd/s_user.c
··· 1432 1432 1433 1433 show_isupport(source_p); 1434 1434 1435 + call_hook(h_user_welcome, source_p); 1435 1436 show_lusers(source_p); 1436 1437 1437 1438 if(ConfigFileEntry.short_motd)
+12
doc/technical/hooks.md
··· 36 36 | Core | server_introduced | A server has been introduced to the network (pre-burst) | 37 37 | Core | server_eob | A server has finished processing a netjoin burst from us | 38 38 | Core | umode_changed | The modes for a user have changed | 39 + | Core | user_welcome | Called during the registration burst for a new local user | 39 40 | m_info | doing_info_conf | Conf entries have been sent to an oper using INFO | 40 41 | m_invite | can_invite | A local user is about to invite another user to a channel | 41 42 | m_invite | invite | A local user is about to be invited to a channel | ··· 1314 1315 1315 1316 Because any mode changes have already been applied, hook functions can check 1316 1317 the current user modes or snomask for the user to determine what has changed. 1318 + 1319 + ### user_welcome 1320 + 1321 + This hook is called while the registration burst for a new local user is being 1322 + sent. It happens after sending ISUPPORT but before sending LUSERS. Some IRCv3 1323 + specifications require sending additional registration data during precisely 1324 + this timing. 1325 + 1326 + Hook data: `struct Client *` 1327 + 1328 + The hook data is the client that is being introduced to the network.