summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index de2013cc6..c14f1ee68 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -1,6 +1,6 @@
/*
*
- * (C) 2003-2012 Anope Team
+ * (C) 2003-2013 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -19,7 +19,6 @@
#include "uplink.h"
#include "bots.h"
#include "channels.h"
-#include "operserv.h"
IRCDProto *IRCD = NULL;
@@ -65,7 +64,7 @@ void IRCDProto::SendKickInternal(const BotInfo *bi, const Channel *c, const User
void IRCDProto::SendMessageInternal(const BotInfo *bi, const Anope::string &dest, const Anope::string &buf)
{
- if (Config->NSDefFlags.HasFlag(NI_MSG))
+ if (Config->NSDefFlags.count("msg"))
SendPrivmsgInternal(bi, dest, buf);
else
SendNoticeInternal(bi, dest, buf);
@@ -383,7 +382,7 @@ bool IRCDProto::IsHostValid(const Anope::string &host)
void IRCDProto::SendOper(User *u)
{
SendNumericInternal(381, u->GetUID(), ":You are now an IRC operator (set by services)");
- u->SetMode(OperServ, UMODE_OPER);
+ u->SetMode(OperServ, "OPER");
}
MessageSource::MessageSource(const Anope::string &src) : source(src), u(NULL), s(NULL)