From 4424abd15d32c819ca22a7c49c4380895527e337 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 13 Oct 2012 00:32:29 -0400 Subject: Add m_sql_oper --- include/opertype.h | 2 +- include/protocol.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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 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 -- cgit