1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 21:13:13 +02:00

Send replies from fantasy commands back to the channel, this will be expanded on later

This commit is contained in:
Adam
2010-11-24 21:40:56 -06:00
parent 37e02a3594
commit cb6ef574e3
154 changed files with 2428 additions and 2111 deletions
+9 -8
View File
@@ -59,14 +59,15 @@ class CommandOSDefcon : public Command
{
}
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
Anope::string lvl = params[0];
User *u = source.u;
const Anope::string &lvl = params[0];
int newLevel = 0;
if (lvl.empty())
{
u->SendMessage(OperServ, OPER_DEFCON_CHANGED, Config->DefConLevel);
source.Reply(OPER_DEFCON_CHANGED, Config->DefConLevel);
defcon_sendlvls(u);
return MOD_CONT;
}
@@ -210,7 +211,7 @@ class OSDefcon : public Module
if (!is_oper(u) && (CheckDefCon(DEFCON_OPER_ONLY) || CheckDefCon(DEFCON_SILENT_OPER_ONLY)))
{
if (!CheckDefCon(DEFCON_SILENT_OPER_ONLY))
u->SendMessage(bi, OPER_DEFCON_DENIED);
u->SendMessage(OperServ, OPER_DEFCON_DENIED);
return EVENT_STOP;
}
@@ -226,7 +227,7 @@ class OSDefcon : public Module
{
if (CheckDefCon(DEFCON_NO_NEW_NICKS))
{
u->SendMessage(NickServ, OPER_DEFCON_DENIED);
u->SendMessage(service, OPER_DEFCON_DENIED);
return EVENT_STOP;
}
}
@@ -237,7 +238,7 @@ class OSDefcon : public Module
{
if (!params.empty() && params[0].equals_ci("MLOCK") && CheckDefCon(DEFCON_NO_MLOCK_CHANGE))
{
u->SendMessage(ChanServ, OPER_DEFCON_DENIED);
u->SendMessage(service, OPER_DEFCON_DENIED);
return EVENT_STOP;
}
}
@@ -245,7 +246,7 @@ class OSDefcon : public Module
{
if (CheckDefCon(DEFCON_NO_NEW_CHANNELS))
{
u->SendMessage(ChanServ, OPER_DEFCON_DENIED);
u->SendMessage(service, OPER_DEFCON_DENIED);
return EVENT_STOP;
}
}
@@ -256,7 +257,7 @@ class OSDefcon : public Module
{
if (CheckDefCon(DEFCON_NO_NEW_MEMOS))
{
u->SendMessage(MemoServ, OPER_DEFCON_DENIED);
u->SendMessage(service, OPER_DEFCON_DENIED);
return EVENT_STOP;
}
}