summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/sql/sqloper.pgsql.sql4
-rw-r--r--src/modules/m_sqloper.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/sql/sqloper.pgsql.sql b/docs/sql/sqloper.pgsql.sql
index 0b3cdb8dc..954bc84fa 100644
--- a/docs/sql/sqloper.pgsql.sql
+++ b/docs/sql/sqloper.pgsql.sql
@@ -6,8 +6,8 @@ CREATE TABLE ircd_opers (
"host" text NOT NULL,
"type" text NOT NULL,
"fingerprint" text,
- "autologin" boolean NOT NULL DEFAULT 0,
- "active" boolean NOT NULL DEFAULT 1
+ "autologin" smallint NOT NULL DEFAULT 0,
+ "active" smallint NOT NULL DEFAULT 1
);
ALTER TABLE ONLY ircd_opers
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp
index da538caef..8ba8e3103 100644
--- a/src/modules/m_sqloper.cpp
+++ b/src/modules/m_sqloper.cpp
@@ -96,6 +96,7 @@ class OperQuery : public SQL::Query
ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end());
oper_blocks[name] = ifo;
my_blocks.push_back(name);
+ row.clear();
}
// If this was done as a result of /OPER and not a config read