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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user