1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 04:16:39 +02:00

irc2sql: fix a couple SQL errors

This commit is contained in:
Adam
2016-11-04 22:07:00 -04:00
parent 9f9183afc4
commit 76ea111980
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -195,7 +195,10 @@ void IRC2SQL::OnChannelCreate(Channel *c)
query.SetValue("channel", c->name);
query.SetValue("topic", c->topic);
query.SetValue("topicauthor", c->topic_setter);
query.SetValue("topictime", c->topic_ts);
if (c->topic_ts > 0)
query.SetValue("topictime", c->topic_ts);
else
query.SetValue("topictime", "NULL", false);
query.SetValue("modes", c->GetModes(true,true));
this->RunQuery(query);
}