summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
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;
}