From 038961359e23d22ed8d2fd782a311fffcfc05f25 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 28 Sep 2008 16:55:27 +0000 Subject: [PATCH] Print warnings in CTable if you feed it with unknown columns git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1223 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utils.cpp b/Utils.cpp index 8cba0e52..a89525ad 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -8,6 +8,7 @@ #include "Utils.h" #include "MD5.h" +#include "main.h" #include #ifdef HAVE_LIBSSL #include @@ -522,6 +523,8 @@ unsigned int CTable::GetColumnIndex(const CString& sName) const { return i; } + DEBUG_ONLY(cout << "CTable::GetColumnIndex(" + sName + ") failed" << endl); + return 0; }