mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix compatibility issues between sqloper and postgres
This commit is contained in:
parent
23033e286f
commit
2533dc10f9
@ -6,8 +6,8 @@ CREATE TABLE ircd_opers (
|
|||||||
"host" text NOT NULL,
|
"host" text NOT NULL,
|
||||||
"type" text NOT NULL,
|
"type" text NOT NULL,
|
||||||
"fingerprint" text,
|
"fingerprint" text,
|
||||||
"autologin" boolean NOT NULL DEFAULT 0,
|
"autologin" smallint NOT NULL DEFAULT 0,
|
||||||
"active" boolean NOT NULL DEFAULT 1
|
"active" smallint NOT NULL DEFAULT 1
|
||||||
);
|
);
|
||||||
ALTER TABLE ONLY ircd_opers
|
ALTER TABLE ONLY ircd_opers
|
||||||
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
|
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);
|
||||||
|
@ -96,6 +96,7 @@ class OperQuery : public SQL::Query
|
|||||||
ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end());
|
ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end());
|
||||||
oper_blocks[name] = ifo;
|
oper_blocks[name] = ifo;
|
||||||
my_blocks.push_back(name);
|
my_blocks.push_back(name);
|
||||||
|
row.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If this was done as a result of /OPER and not a config read
|
// If this was done as a result of /OPER and not a config read
|
||||||
|
Loading…
x
Reference in New Issue
Block a user