summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-13 00:32:29 -0400
committerAdam <Adam@anope.org>2012-10-13 00:37:10 -0400
commit4424abd15d32c819ca22a7c49c4380895527e337 (patch)
treed34c183bdd9244afca9c8de3730c3b3d5ed8105a /include
parent76a0471c291d2b8045b52ec8e9d683a38bff47ff (diff)
Add m_sql_oper
Diffstat (limited to 'include')
-rw-r--r--include/opertype.h2
-rw-r--r--include/protocol.h5
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