Removed some debug comments and a debug print

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1802 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2010-03-03 01:47:26 +00:00
parent 6cf9b45310
commit f17798faa9
-12
View File
@@ -668,20 +668,8 @@ bool CTemplate::ValidExpr(const CString& sExpression) {
}
if (sExpr.find("!=") != CString::npos) {
// GOOD:
// >>>>>>>>>>>>>>>>>>> [PageName] [index] -> [PageName != "index"]
// >>>>>>>>>>>>>>>>>>> [PageName] [help] -> [PageName != "help"]
//
// BAD:
// >>>>>>>>>>>>>>>>>>> [PageName] ["index"] -> [PageName != "index"]
// >>>>>>>>>>>>>>>>>>> [PageName] ["help"] -> [PageName != "help"]
//
//CString CTemplate::Token(const CString& sStr, unsigned int uPos, bool bRest, const CString& sSep, bool bAllowEmpty,
// const CString& sLeft, const CString& sRight, bool bTrimQuotes) {
sName = sExpr.Token(0, false, "!=").Trim_n();
sValue = sExpr.Token(1, true, "!=", false, "\"", "\"", true).Trim_n();
DEBUG(">>>>>>>>>>>>>>>>>>> [" + sName + "] [" + sValue + "] -> [" + sExpr + "]");
bNegate = !bNegate;
} else if (sExpr.find("==") != CString::npos) {
sName = sExpr.Token(0, false, "==").Trim_n();