Skip to content

Commit 1809afe

Browse files
Add size-bounded splitcn() to module API
1 parent 028e756 commit 1809afe

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/mod/module.h

+1
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ typedef void (*chanout_butfunc)(int, int, const char *, ...) ATTRIBUTE_FORMAT(pr
528528
/* 324 - 327 */
529529
#define find_member_from_nick ((memberlist * (*) (char *))global[324])
530530
#define get_user_from_member ((struct userrec * (*) (memberlist *))global[325])
531+
#define splitcn ((void (*)(char *, char *, char, size_t))global[326])
531532

532533

533534
/* hostmasking */

src/modules.c

+1
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ Function global_table[] = {
626626
/* 324 - 327 */
627627
(Function) find_member_from_nick,
628628
(Function) get_user_from_member,
629+
(Function) splitcn,
629630
};
630631

631632
void init_modules(void)

0 commit comments

Comments
 (0)