diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/opertype.h | 2 | ||||
| -rw-r--r-- | include/protocol.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/opertype.h b/include/opertype.h index 3f0b8d157..4e3f01e28 100644 --- a/include/opertype.h +++ b/include/opertype.h @@ -23,7 +23,7 @@ struct CoreExport Oper std::vector<Anope::string> hosts; Anope::string vhost; - Oper(const Anope::string &n, OperType *o) : name(n), ot(o) { this->config = false; } + Oper(const Anope::string &n, OperType *o) : name(n), ot(o), require_oper(false), config(false) { } virtual ~Oper() { } diff --git a/include/protocol.h b/include/protocol.h index d4ff79082..4da0b5b3a 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -120,6 +120,11 @@ class CoreExport IRCDProto * On most TS6 IRCds this is a SJOIN with no nick */ virtual void SendChannel(Channel *c) { } + + /** Make the user an IRC operator + * Normally this is a simple +o, though some IRCds require us to send the oper type + */ + virtual void SendOper(User *u); }; enum IRCDMessageFlag |
