mirror of
https://github.com/anope/anope.git
synced 2026-06-28 15:36:38 +02:00
Merge usefulness of Flags and Extensible classes into Extensible, made most flags we have juse strings instead of defines/enums
This commit is contained in:
+2
-2
@@ -64,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);
|
||||
@@ -382,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)
|
||||
|
||||
Reference in New Issue
Block a user