From cbce82c3ca4a3ee5d477fab305d9aefc0b8383af Mon Sep 17 00:00:00 2001 From: om Date: Sun, 1 Oct 2006 20:59:30 +0000 Subject: 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 --- src/mode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mode.cpp') 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'); } - -- cgit v1.3.1-10-gc9f91