mirror of
https://github.com/anope/anope.git
synced 2026-06-25 02:06:37 +02:00
Fix the query used by IRC2SQL for updating server information.
This commit is contained in:
@@ -71,7 +71,7 @@ void IRC2SQL::OnNewServer(Server *server)
|
||||
query = "INSERT DELAYED INTO `" + prefix + "server` (name, hops, comment, link_time, online, ulined) "
|
||||
"VALUES (@name@, @hops@, @comment@, now(), 'Y', @ulined@) "
|
||||
"ON DUPLICATE KEY UPDATE name=VALUES(name), hops=VALUES(hops), comment=VALUES(comment), "
|
||||
"link_time=VALUES(link_time), online=VALUES(online), ulined=(ulined)";
|
||||
"link_time=VALUES(link_time), online=VALUES(online), ulined=VALUES(ulined)";
|
||||
query.SetValue("name", server->GetName());
|
||||
query.SetValue("hops", server->GetHops());
|
||||
query.SetValue("comment", server->GetDescription());
|
||||
|
||||
Reference in New Issue
Block a user