Using OptionalBool, add RecordHistoryOptional col into IrcChannelOptions table
ref #3269
This commit is contained in:
@@ -9,3 +9,13 @@ void actual_add_param(Query& query, const std::string& val)
|
||||
{
|
||||
query.params.push_back(val);
|
||||
}
|
||||
|
||||
void actual_add_param(Query& query, const OptionalBool& val)
|
||||
{
|
||||
if (!val.is_set)
|
||||
query.params.push_back("0");
|
||||
else if (val.value)
|
||||
query.params.push_back("1");
|
||||
else
|
||||
query.params.push_back("-1");
|
||||
}
|
||||
Reference in New Issue
Block a user