aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-10-24 18:45:17 +0000
committerGravatar brain2007-10-24 18:45:17 +0000
commit475f5579b5674a1b14d051bbd5d4400dd811e085 (patch)
tree669f3eacaa1597ff4f41eff1d40ef9c694ef6e51 /src/modules/extra/m_sqloper.cpp
parentLast of the -pedantic fixes. Seems we were all good with -pedantic from the s... (diff)
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
Diffstat (limited to 'src/modules/extra/m_sqloper.cpp')
-rw-r--r--src/modules/extra/m_sqloper.cpp4
1 files changed, 2 insertions, 2 deletions
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())
{