aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sqloper.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-30 20:24:41 +0100
committerGravatar Sadie Powell2021-03-30 20:24:41 +0100
commit03058a043ac50ec985b08e374e6e116774a5b970 (patch)
tree0294b4a06d21ca6b49a03671c42280454dd1a59d /src/modules/m_sqloper.cpp
parentStop installing inspircd-genssl and delete the now useless manpage. (diff)
Convert SQL::Field to be a typedef of optional<string>.
Diffstat (limited to 'src/modules/m_sqloper.cpp')
-rw-r--r--src/modules/m_sqloper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index 3bbd2dafd..f037336ff 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -77,8 +77,8 @@ class OperQuery : public SQL::Query
*/
for (unsigned int i=0; i < cols.size(); ++i)
{
- if (!row[i].IsNull())
- tag->GetItems()[cols[i]] = row[i];
+ if (row[i].has_value())
+ tag->GetItems()[cols[i]] = *row[i];
}
const std::string name = tag->getString("name");