summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-10-21 16:26:08 +0100
committerSadie Powell <sadie@witchery.services>2020-10-21 16:26:08 +0100
commita3c7f716bd256d8b8ead578b1a6bc657f31aec4d (patch)
tree9904e2deaad8c7db9ded40c299bb52052ecbd6b6
parentb2b53a1e0157ac199584e91f237ec3e8887fcb10 (diff)
Fix the query used by IRC2SQL for updating server information.
-rw-r--r--modules/extra/stats/irc2sql/irc2sql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/stats/irc2sql/irc2sql.cpp b/modules/extra/stats/irc2sql/irc2sql.cpp
index 931e535bd..108ec1c97 100644
--- a/modules/extra/stats/irc2sql/irc2sql.cpp
+++ b/modules/extra/stats/irc2sql/irc2sql.cpp
@@ -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());