From 7372b457cc355f750631860d2d85d13e0089a72a Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 8 Apr 2012 19:29:56 +0200 Subject: fixed a compile error in m_sqlite --- modules/extra/m_sqlite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra/m_sqlite.cpp') diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp index 02923cfa7..2dd8ed148 100644 --- a/modules/extra/m_sqlite.cpp +++ b/modules/extra/m_sqlite.cpp @@ -229,8 +229,8 @@ Anope::string SQLiteService::BuildQuery(const SQLQuery &q) { Anope::string real_query = q.query; - for (std::map::const_iterator it = q.parameters.begin(), it_end = q.parameters.end(); it != it_end; ++it) - real_query = real_query.replace_all_cs("@" + it->first + "@", "'" + this->Escape(it->second) + "'"); + for (std::map::const_iterator it = q.parameters.begin(), it_end = q.parameters.end(); it != it_end; ++it) + real_query = real_query.replace_all_cs("@" + it->first + "@", (it->second.escape ? ("'" + this->Escape(it->second.data) + "'") : it->second.data)); return real_query; } -- cgit