summaryrefslogtreecommitdiff
path: root/src/core/bs_bot.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
commit308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch)
tree2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/core/bs_bot.c
parent3d4cf39940144be19645a3a7cdecf95213b96f26 (diff)
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/bs_bot.c')
-rw-r--r--src/core/bs_bot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index 56be53b33..cfaafac23 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -334,7 +334,7 @@ class CommandBSBot : public Command
if (cmd == "ADD")
{
// ADD nick user host real - 5
- if (!u->nc->HasCommand("botserv/bot/add"))
+ if (!u->Account()->HasCommand("botserv/bot/add"))
{
notice_lang(Config.s_BotServ, u, ACCESS_DENIED);
return MOD_CONT;
@@ -357,7 +357,7 @@ class CommandBSBot : public Command
{
// CHANGE oldn newn user host real - 6
// but only oldn and newn are required
- if (!u->nc->HasCommand("botserv/bot/change"))
+ if (!u->Account()->HasCommand("botserv/bot/change"))
{
notice_lang(Config.s_BotServ, u, ACCESS_DENIED);
return MOD_CONT;
@@ -374,7 +374,7 @@ class CommandBSBot : public Command
else if (cmd == "DEL")
{
// DEL nick
- if (!u->nc->HasCommand("botserv/bot/del"))
+ if (!u->Account()->HasCommand("botserv/bot/del"))
{
notice_lang(Config.s_BotServ, u, ACCESS_DENIED);
return MOD_CONT;