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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user