summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/core/db_mysql_live.cpp12
-rw-r--r--modules/core/ns_main.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/modules/core/db_mysql_live.cpp b/modules/core/db_mysql_live.cpp
index 1073f1b99..a9abd2868 100644
--- a/modules/core/db_mysql_live.cpp
+++ b/modules/core/db_mysql_live.cpp
@@ -179,8 +179,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_cs_info` WHERE `name` = ?");
- query.setValue(1, chname);
+ SQLQuery query("SELECT * FROM `anope_cs_info` WHERE `name` = @name");
+ query.setValue("name", chname);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{
@@ -216,8 +216,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_ns_alias` WHERE `nick` = ?");
- query.setValue(1, nick);
+ SQLQuery query("SELECT * FROM `anope_ns_alias` WHERE `nick` = @nick");
+ query.setValue("nick", nick);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{
@@ -253,8 +253,8 @@ class MySQLLiveModule : public Module
try
{
- SQLQuery query("SELECT * FROM `anope_ns_core` WHERE `display` = ?");
- query.setValue(1, nick);
+ SQLQuery query("SELECT * FROM `anope_ns_core` WHERE `display` = @display");
+ query.setValue("display", nick);
CommandMutex *current_command = this->CurrentCommand();
if (current_command)
{
diff --git a/modules/core/ns_main.cpp b/modules/core/ns_main.cpp
index 25960e023..8d50f7042 100644
--- a/modules/core/ns_main.cpp
+++ b/modules/core/ns_main.cpp
@@ -147,7 +147,7 @@ class NickServCore : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnDelNick, I_OnDelCore, I_OnChangeCoreDisplay, I_OnNickIdentify, I_OnNickGroup, I_OnNickUpdate };
- ModuleManager::Attach(i, this, 5);
+ ModuleManager::Attach(i, this, 6);
ModuleManager::RegisterService(&this->mynickserv);