summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-14 20:52:17 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-14 20:52:17 +0000
commit5993a65b87ecf794158dca1ac2602c1755c2a27e (patch)
treeacc99878b60d229d65e2daa24c39879900476acb /src/modules.c
parent116a4b2bea556911239f735c467c7b6f1415c0a7 (diff)
Fixed many windows problems in the debug build
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2960 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.c b/src/modules.c
index d3453efad..55085ccd3 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -176,8 +176,8 @@ static int internal_addCommand(Module *m, CommandHash * cmdTable[], Command * c)
if (!cmdTable || !c) {
return MOD_ERR_PARAMS;
}
-
- index = CMD_HASH(c->name);
+
+ index = CMD_HASH(c->name.c_str());
for (current = cmdTable[index]; current; current = current->next) {
if ((c->service) && (current->c) && (current->c->service)
@@ -283,7 +283,7 @@ static int internal_delCommand(CommandHash * cmdTable[], Command * c, const char
return MOD_ERR_PARAMS;
}
- index = CMD_HASH(c->name);
+ index = CMD_HASH(c->name.c_str());
for (current = cmdTable[index]; current; current = current->next) {
if (stricmp(c->name.c_str(), current->name) == 0) {
if (!lastHash) {