1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 19:23:15 +02:00

Fixed ns_update and db_mysql_live sql queries

This commit is contained in:
Adam
2011-05-29 19:05:28 -04:00
parent a45d1555d3
commit 60548aa00b
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -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)
{
+1 -1
View File
@@ -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);