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

Moved the core pseudo clients out into their own modules

This commit is contained in:
Adam
2011-04-22 03:16:11 -04:00
parent 1782ce260c
commit c8c23158a4
226 changed files with 5187 additions and 4891 deletions
+5 -4
View File
@@ -6,6 +6,7 @@
*/
#include "module.h"
#include "chanserv.h"
struct CommandAlias
{
@@ -26,10 +27,10 @@ class ModuleAlias : public Module
Implementation i[] = { I_OnReload, I_OnPreCommandRun, I_OnBotFantasy };
ModuleManager::Attach(i, this, 3);
OnReload(false);
OnReload();
}
void OnReload(bool)
void OnReload()
{
ConfigReader config;
@@ -102,10 +103,10 @@ class ModuleAlias : public Module
BotInfo *target = findbot(alias.target_client);
if (!target)
target = ChanServ;
target = chanserv->Bot();
Anope::string full_message = alias.target_command;
if (target == ChanServ || target == BotServ)
if (target == chanserv->Bot() || target->nick == Config->s_BotServ)
{
Command *target_c = FindCommand(target, alias.target_command);
if (target_c && !target_c->HasFlag(CFLAG_STRIP_CHANNEL))