1
0
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:
Sadie Powell
2020-10-21 16:26:08 +01:00
parent b2b53a1e01
commit a3c7f716bd
+1 -1
View File
@@ -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());