diff options
| author | Adam <Adam@anope.org> | 2012-09-21 21:39:32 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-09-21 21:39:32 -0400 |
| commit | 3779ed916a1bf70d744a7ba6ac5fa31862057d0f (patch) | |
| tree | 0e1f5f3b2b8c36eefa8e52872fb2164fa5569075 | |
| parent | 3f05a42515b588b508419040e71b74ea2a27f1d0 (diff) | |
Made all module functions static to fix OSX's linker from linking
modules with similar function names to each other which causes
complete and total chaos.
135 files changed, 913 insertions, 912 deletions
diff --git a/src/core/bs_act.c b/src/core/bs_act.c index b55200386..c3cdbefc2 100644 --- a/src/core/bs_act.c +++ b/src/core/bs_act.c @@ -14,8 +14,8 @@ #include "module.h" -int do_act(User * u); -void myBotServHelp(User * u); +static int do_act(User * u); +static void myBotServHelp(User * u); /** * Create the command, and tell anope about it. @@ -50,7 +50,7 @@ void AnopeFini(void) * Add the help response to Anopes /bs help output. * @param u The user who is requesting help **/ -void myBotServHelp(User * u) +static void myBotServHelp(User * u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_ACT); } @@ -60,7 +60,7 @@ void myBotServHelp(User * u) * @param u The user who issued the command * @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing. **/ -int do_act(User * u) +static int do_act(User * u) { ChannelInfo *ci; diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c index aee9da128..f3aad65d1 100644 --- a/src/core/bs_assign.c +++ b/src/core/bs_assign.c @@ -14,8 +14,8 @@ #include "module.h" -int do_assign(User * u); -void myBotServHelp(User * u); +static int do_assign(User * u); +static void myBotServHelp(User * u); /** * Create the command, and tell anope about it. @@ -52,7 +52,7 @@ void AnopeFini(void) * Add the help response to Anopes /bs help output. * @param u The user who is requesting help **/ -void myBotServHelp(User * u) +static void myBotServHelp(User * u) { notice_lang(s_BotServ, u, BOT_HELP_CMD_ASSIGN); } @@ -62,7 +62,7 @@ void myBotServHelp(User * u) * @param u The user who issued the command * @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing. **/ -int do_assign(User * u) +static int do_assign(User * u) { char *chan = strtok(NULL, " "); char *nick = strtok(NULL, " "); diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c index 051a352df..f469fad03 100644 --- a/src/core/bs_badwords.c +++ b/src/core/bs_badwords.c @@ -14,11 +14,11 @@ #include "module.h" |
