summaryrefslogtreecommitdiff
path: root/src/core/ms_set.c
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
committerAdam <Adam@anope.org>2012-09-21 21:39:32 -0400
commit3779ed916a1bf70d744a7ba6ac5fa31862057d0f (patch)
tree0e1f5f3b2b8c36eefa8e52872fb2164fa5569075 /src/core/ms_set.c
parent3f05a42515b588b508419040e71b74ea2a27f1d0 (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.
Diffstat (limited to 'src/core/ms_set.c')
-rw-r--r--src/core/ms_set.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/ms_set.c b/src/core/ms_set.c
index 1d9af84ca..9aa04c202 100644
--- a/src/core/ms_set.c
+++ b/src/core/ms_set.c
@@ -14,10 +14,10 @@
#include "module.h"
-int do_set(User * u);
-int do_set_notify(User * u, MemoInfo * mi, char *param);
-int do_set_limit(User * u, MemoInfo * mi, char *param);
-void myMemoServHelp(User * u);
+static int do_set(User * u);
+static int do_set_notify(User * u, MemoInfo * mi, char *param);
+static int do_set_limit(User * u, MemoInfo * mi, char *param);
+static void myMemoServHelp(User * u);
/**
* Create the command, and tell anope about it.
@@ -66,7 +66,7 @@ void AnopeFini(void)
* Add the help response to anopes /hs help output.
* @param u The user who is requesting help
**/
-void myMemoServHelp(User * u)
+static void myMemoServHelp(User * u)
{
notice_lang(s_MemoServ, u, MEMO_HELP_CMD_SET);
}
@@ -76,7 +76,7 @@ void myMemoServHelp(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_set(User * u)
+static int do_set(User * u)
{
char *cmd = strtok(NULL, " ");
char *param = strtok(NULL, "");
@@ -107,7 +107,7 @@ int do_set(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_set_notify(User * u, MemoInfo * mi, char *param)
+static int do_set_notify(User * u, MemoInfo * mi, char *param)
{
if (stricmp(param, "ON") == 0) {
u->na->nc->flags |= NI_MEMO_SIGNON | NI_MEMO_RECEIVE;
@@ -156,7 +156,7 @@ int do_set_notify(User * u, MemoInfo * mi, char *param)
* @param u The user who issued the command
* @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing.
**/
-int do_set_limit(User * u, MemoInfo * mi, char *param)
+static int do_set_limit(User * u, MemoInfo * mi, char *param)
{
char *p1 = strtok(param, " ");
char *p2 = strtok(NULL, " ");