summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-01 20:59:30 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-01 20:59:30 +0000
commitcbce82c3ca4a3ee5d477fab305d9aefc0b8383af (patch)
treeb2aeec2a37229ef641792a7724266fb9bd58791e
parentb6bcdbfcd18e17852e50e246a3d7d65a0cb2dba4 (diff)
Add an extra debug message and change two calls of GetModeType to GetModeChar as I'm 99.9% sure they should be
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5376 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mode.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index b2cdd9afe..b32f31dde 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -859,7 +859,7 @@ bool ModeParser::DelModeWatcher(ModeWatcher* mw)
if (!mw)
return false;
- if ((mw->GetModeType() < 'A') || (mw->GetModeType() > 'z'))
+ if ((mw->GetModeChar() < 'A') || (mw->GetModeChar() > 'z'))
return false;
mw->GetModeType() == MODETYPE_USER ? mask = MASK_USER : mask = MASK_CHANNEL;
@@ -868,7 +868,10 @@ bool ModeParser::DelModeWatcher(ModeWatcher* mw)
ModeWatchIter a = find(modewatchers[pos].begin(),modewatchers[pos].end(),mw);
if (a == modewatchers[pos].end())
+ {
+ ServerInstance->Log(DEBUG, "ModeParser::DelModeWatcher: Couldn't find watcher for mode %c in list", mw->GetModeChar());
return false;
+ }
modewatchers[pos].erase(a);
ServerInstance->Log(DEBUG,"ModeParser::DelModeWatcher: stopped watching mode %c",mw->GetModeChar());
@@ -953,4 +956,3 @@ ModeParser::ModeParser(InspIRCd* Instance) : ServerInstance(Instance)
this->AddMode(new ModeUserOperator(Instance), 'o');
this->AddMode(new ModeUserServerNoticeMask(Instance), 'n');
}
-