summaryrefslogtreecommitdiff
path: root/modules/core/bs_unassign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/bs_unassign.cpp')
-rw-r--r--modules/core/bs_unassign.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/core/bs_unassign.cpp b/modules/core/bs_unassign.cpp
index 8dd01f7f5..bde37f78e 100644
--- a/modules/core/bs_unassign.cpp
+++ b/modules/core/bs_unassign.cpp
@@ -27,35 +27,35 @@ class CommandBSUnassign : public Command
ChannelMode *cm = ModeManager::FindChannelModeByName(CMODE_PERM);
if (readonly)
- notice_lang(Config.s_BotServ, u, BOT_ASSIGN_READONLY);
+ notice_lang(Config->s_BotServ, u, BOT_ASSIGN_READONLY);
else if (!u->Account()->HasPriv("botserv/administration") && !check_access(u, ci, CA_ASSIGN))
- notice_lang(Config.s_BotServ, u, ACCESS_DENIED);
+ notice_lang(Config->s_BotServ, u, ACCESS_DENIED);
else if (!ci->bi)
- notice_help(Config.s_BotServ, u, BOT_NOT_ASSIGNED);
+ notice_help(Config->s_BotServ, u, BOT_NOT_ASSIGNED);
else if (ci->HasFlag(CI_PERSIST) && !cm)
- notice_help(Config.s_BotServ, u, BOT_UNASSIGN_PERSISTANT_CHAN);
+ notice_help(Config->s_BotServ, u, BOT_UNASSIGN_PERSISTANT_CHAN);
else
{
ci->bi->UnAssign(u, ci);
- notice_lang(Config.s_BotServ, u, BOT_UNASSIGN_UNASSIGNED, ci->name.c_str());
+ notice_lang(Config->s_BotServ, u, BOT_UNASSIGN_UNASSIGNED, ci->name.c_str());
}
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &subcommand)
{
- notice_help(Config.s_BotServ, u, BOT_HELP_UNASSIGN);
+ notice_help(Config->s_BotServ, u, BOT_HELP_UNASSIGN);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
- syntax_error(Config.s_BotServ, u, "UNASSIGN", BOT_UNASSIGN_SYNTAX);
+ syntax_error(Config->s_BotServ, u, "UNASSIGN", BOT_UNASSIGN_SYNTAX);
}
void OnServHelp(User *u)
{
- notice_lang(Config.s_BotServ, u, BOT_HELP_CMD_UNASSIGN);
+ notice_lang(Config->s_BotServ, u, BOT_HELP_CMD_UNASSIGN);
}
};