summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-09-06 16:47:57 -0400
committerAdam <Adam@anope.org>2015-09-06 16:48:25 -0400
commitc6a92296d4175a2d2276c2d5a46894af3d9085f4 (patch)
tree8e6dfe9fd21825f53a1e32641bc71e701e6c853e /modules/commands
parent263dc290d296af2fcdf7f8a9f04735935e9c2580 (diff)
Allow configuring modes
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_bot.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp
index c67c5d168..1ba22531e 100644
--- a/modules/commands/bs_bot.cpp
+++ b/modules/commands/bs_bot.cpp
@@ -85,8 +85,6 @@ class CommandBSBot : public Command
targ->Kill(Me, "Nickname is reserved for services");
ServiceBot *bi = new ServiceBot(nick, user, host, real);
- bi->bi = botinfo.Create();
- bi->bi->bot = bi;
Log(LOG_ADMIN, source, this) << "ADD " << bi->GetMask() << " " << bi->realname;
@@ -116,7 +114,7 @@ class CommandBSBot : public Command
return;
}
- if (bi->conf)
+ if (bi->bi->conf)
{
source.Reply(_("Bot \002{0}\002 is not changeable because it is configured in services configuration."), bi->nick.c_str());
return;
@@ -259,7 +257,7 @@ class CommandBSBot : public Command
return;
}
- if (bi->conf)
+ if (bi->bi->conf)
{
source.Reply(_("Bot \002{0}\002 is can not be deleted because it is configured in services configuration."), bi->nick);
return;
@@ -270,7 +268,6 @@ class CommandBSBot : public Command
Log(LOG_ADMIN, source, this) << "DEL " << bi->nick;
source.Reply(_("Bot \002{0}\002 has been deleted."), bi->nick);
- // XXX delete bi->bi?
delete bi;
}