summaryrefslogtreecommitdiff
path: root/src/operserv.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 01:00:16 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 01:00:16 +0000
commitd5162d6e45aa484b918f4e2f97f5fcfb49b537e0 (patch)
tree6707b1f62d38a2e1912d024c8bdec66f65463329 /src/operserv.c
parent7ac7c564f5115af12f771db5b510b757b1dcc322 (diff)
Fix various scary stuff to do with API.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1584 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/operserv.c')
-rw-r--r--src/operserv.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/operserv.c b/src/operserv.c
index c39790418..470a96008 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -55,10 +55,6 @@ ChannelInfo DefConModesCI; /* ChannelInfo containg params for locked modes
*/
-#ifdef DEBUG_COMMANDS
-static int do_matchwild(User * u);
-#endif
-
void moduleAddOperServCmds(void);
/*************************************************************************/
@@ -78,16 +74,7 @@ SListOpts szopts = { 0, NULL, &is_szline_entry_equal, &free_szline_entry };
/*************************************************************************/
/* *INDENT-OFF* */
void moduleAddOperServCmds(void) {
-#ifdef DEBUG_COMMANDS
- Command *c;
-#endif
-
modules_core_init(OperServCoreNumber, OperServCoreModules);
-
-#ifdef DEBUG_COMMANDS
- c = createCommand("LISTTIMERS", send_timeout_list, is_services_root, -1,-1,-1,-1,-1); addCoreCommand(OPERSERV,c);
- c = createCommand("MATCHWILD", do_matchwild, is_services_root, -1,-1,-1,-1,-1); addCoreCommand(OPERSERV,c);
-#endif
}
/* *INDENT-ON* */
@@ -1496,22 +1483,6 @@ static void free_operlist_entry(SList * slist, void *item)
/*************************************************************************/
-#ifdef DEBUG_COMMANDS
-
-static int do_matchwild(User * u)
-{
- char *pat = strtok(NULL, " ");
- char *str = strtok(NULL, " ");
- if (pat && str)
- notice_user(s_OperServ, u, "%d", match_wild(pat, str));
- else
- notice_user(s_OperServ, u, "Syntax error.");
- return MOD_CONT;
-}
-
-#endif /* DEBUG_COMMANDS */
-
-/*************************************************************************/
/**
* Returns 1 if the passed level is part of the CURRENT defcon, else 0 is returned
**/