From 475f5579b5674a1b14d051bbd5d4400dd811e085 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 24 Oct 2007 18:45:17 +0000 Subject: Remove variadic macros from sqlv2 api, removing the warnings that come with it and increasing compatibility git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8353 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sqloper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/extra/m_sqloper.cpp') diff --git a/src/modules/extra/m_sqloper.cpp b/src/modules/extra/m_sqloper.cpp index c9149322c..2bfedc911 100644 --- a/src/modules/extra/m_sqloper.cpp +++ b/src/modules/extra/m_sqloper.cpp @@ -24,7 +24,6 @@ /* $ModDesc: Allows storage of oper credentials in an SQL table */ /* $ModDep: m_sqlv2.h m_sqlutils.h */ -/* $CompileFlags: -Wno-variadic-macros */ class ModuleSQLOper : public Module { @@ -105,7 +104,8 @@ public: * also hashing it in the module and only passing a remote query containing a hash is more secure. */ - SQLrequest req = SQLreq(this, target, databaseid, "SELECT username, password, hostname, type FROM ircd_opers WHERE username = '?' AND password='?'", username, md5_pass_hash); + SQLrequest req = SQLrequest(this, target, databaseid, + SQLquery("SELECT username, password, hostname, type FROM ircd_opers WHERE username = '?' AND password='?'") % username % md5_pass_hash); if (req.Send()) { -- cgit v1.3.1-10-gc9f91