]> jfr.im git - solanum.git/commitdiff
filter: correct type for modinit
authorEd Kellett <redacted>
Sat, 5 Oct 2019 23:41:56 +0000 (00:41 +0100)
committerEd Kellett <redacted>
Sun, 6 Oct 2019 18:24:35 +0000 (19:24 +0100)
extensions/filter.c

index 8c91b0c8ff4d67b59811c0929968a4f781050ece..c4a7f0d67048e010d4383cc5793c001b6f5c370f 100644 (file)
@@ -100,12 +100,13 @@ struct Message setfilter_msgtab = {
        {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_setfilter, 2}, {mo_setfilter, 2}}
 };
 
-static void
+static int
 modinit(void)
 {
        filter_umode = user_modes['u'] = find_umode_slot();
        construct_umodebuf();
        filter_chmode = cflag_add('u', chm_simple);
+       return 0;
 }
 
 static void