summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-04-24 17:18:25 -0400
committerAdam <Adam@anope.org>2010-06-18 20:55:38 -0400
commitfa82890696c498f38643df7df6891434c91c9269 (patch)
tree4b28359e75c29825586e6b2394e5334e43ea074b /src/modules.c
parent2ba89de64d3b755f731f202dd97c48d256db8031 (diff)
Moved Commands stuff to its own file and changed Command::name to be ci::string - Will be used after hashing system is rewritten
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/modules.c b/src/modules.c
index 40c10144f..af3aa2f4d 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -362,30 +362,6 @@ int Module::DelCommand(CommandHash * cmdTable[], const char *dname)
return status;
}
-/**
- * Search the command table gieven for a command.
- * @param cmdTable the name of the command table to search
- * @param name the name of the command to look for
- * @return returns a pointer to the found command struct, or NULL
- */
-Command *findCommand(CommandHash * cmdTable[], const char *name)
-{
- int idx;
- CommandHash *current = NULL;
- if (!cmdTable || !name) {
- return NULL;
- }
-
- idx = CMD_HASH(name);
-
- for (current = cmdTable[idx]; current; current = current->next) {
- if (stricmp(name, current->name) == 0) {
- return current->c;
- }
- }
- return NULL;
-}
-
/*******************************************************************************
* Message Functions
*******************************************************************************/