Skip to content

Commit

Permalink
Add size-bounded splitcn() to module API
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Feb 2, 2025
2 parents 7145bf5 + 1809afe commit 6435211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mod/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ typedef void (*chanout_butfunc)(int, int, const char *, ...) ATTRIBUTE_FORMAT(pr
/* 324 - 327 */
#define find_member_from_nick ((memberlist * (*) (char *))global[324])
#define get_user_from_member ((struct userrec * (*) (memberlist *))global[325])
#define splitcn ((void (*)(char *, char *, char, size_t))global[326])


/* hostmasking */
Expand Down
1 change: 1 addition & 0 deletions src/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ Function global_table[] = {
/* 324 - 327 */
(Function) find_member_from_nick,
(Function) get_user_from_member,
(Function) splitcn,
};

void init_modules(void)
Expand Down

0 comments on commit 6435211

Please sign in to comment.