1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 00:03: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
+7 -3
View File
@@ -7,6 +7,12 @@
#include "module.h"
struct FakeAkill : public Command
{
FakeAkill() : Command("AKILL", 0, 0) { this->service = OperServ; }
CommandReturn Execute(CommandSource &, const std::vector<Anope::string> &) { return MOD_CONT; }
} fake_akill;
struct Blacklist
{
Anope::string name;
@@ -56,9 +62,7 @@ class DNSBLResolver : public DNSRequest
XLine *x = NULL;
if (this->add_to_akill && SGLine && (x = SGLine->Add(NULL, NULL, Anope::string("*@") + user->host, Anope::CurTime + this->blacklist.bantime, reason)))
{
static Command command_akill("AKILL", 0);
command_akill.service = OperServ;
Log(LOG_COMMAND, OperServ, &command_akill) << "for " << user->GetMask() << " (Listed in " << this->blacklist.name << ")";
Log(LOG_COMMAND, OperServ, &fake_akill) << "for " << user->GetMask() << " (Listed in " << this->blacklist.name << ")";
/* If AkillOnAdd is disabled send it anyway, noone wants bots around... */
if (!Config->AkillOnAdd)
ircdproto->SendAkill(x);