mirror of
https://github.com/anope/anope.git
synced 2026-06-26 17:56:38 +02:00
fixed crashbug in db_mysql_write on updating an empty greet message
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2954 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -506,7 +506,7 @@ class DBMySQLWrite : public DBMySQL
|
||||
}
|
||||
else if (cmd == "GREET")
|
||||
{
|
||||
query << "UPDATE `anope_ns_core` SET `greet` = " << mysqlpp::quote << nc->greet << " WHERE `display` = " << mysqlpp::quote << nc->display;
|
||||
query << "UPDATE `anope_ns_core` SET `greet` = " << mysqlpp::quote << (nc->greet ? nc->greet : "") << " WHERE `display` = " << mysqlpp::quote << nc->display;
|
||||
ExecuteQuery(query);
|
||||
}
|
||||
else if (cmd == "KILL" || cmd == "SECURE" || cmd == "PRIVATE" || cmd == "MSG" || cmd == "HIDE" || cmd == "AUTOOP")
|
||||
|
||||
Reference in New Issue
Block a user