summaryrefslogtreecommitdiff
path: root/src/core/bs_unassign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/bs_unassign.c')
-rw-r--r--src/core/bs_unassign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bs_unassign.c b/src/core/bs_unassign.c
index a29f0099f..0505b8ea6 100644
--- a/src/core/bs_unassign.c
+++ b/src/core/bs_unassign.c
@@ -30,7 +30,7 @@ class CommandBSUnassign : public Command
if (readonly)
notice_lang(Config.s_BotServ, u, BOT_ASSIGN_READONLY);
- else if (!u->nc->HasPriv("botserv/administration") && !check_access(u, ci, CA_ASSIGN))
+ else if (!u->Account()->HasPriv("botserv/administration") && !check_access(u, ci, CA_ASSIGN))
notice_lang(Config.s_BotServ, u, ACCESS_DENIED);
else if (!ci->bi)
notice_help(Config.s_BotServ, u, BOT_NOT_ASSIGNED);