summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 14fe249ed..5d836b7f4 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -316,6 +316,12 @@ bool IRCDProto::IsChannelValid(const Anope::string &chan)
return true;
}
+void IRCDProto::SendOper(User *u)
+{
+ SendNumericInternal(381, u->GetUID(), ":You are now an IRC operator (set by services)");
+ u->SetMode(findbot(Config->OperServ), UMODE_OPER);
+}
+
MessageSource::MessageSource(const Anope::string &src) : source(src), u(NULL), s(NULL)
{
if (src.empty())