summaryrefslogtreecommitdiff
path: root/src/core/bs_assign.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 01:59:21 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 01:59:21 +0000
commit84d789c72b97513ec02a4e115b90cc952fadea64 (patch)
tree92ed7471914f52e0de08c639e1f26d78edd1d409 /src/core/bs_assign.c
parent6d835a6e49d41d8353ee8506dc6d7cf7b3f1047a (diff)
Replaced notice_lang with notice_help in all OnHelp() functions in modules. Also fixed a few smaller issues regarding the help in the modules.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2053 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/bs_assign.c')
-rw-r--r--src/core/bs_assign.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index 73bbd6213..5efd6ae41 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -36,43 +36,43 @@ class CommandBSAssign : public Command
notice_lang(s_BotServ, u, BOT_ASSIGN_READONLY);
return MOD_CONT;
}
-
+
if (!(bi = findbot(nick)))
{
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, nick);
return MOD_CONT;
}
-
+
if (bi->flags & BI_PRIVATE && !is_oper(u))
{
notice_lang(s_BotServ, u, PERMISSION_DENIED);
return MOD_CONT;
}
-
+
if (!(ci = cs_findchan(chan)))
{
notice_lang(s_BotServ, u, CHAN_X_NOT_REGISTERED, chan);
return MOD_CONT;
}
-
+
if (ci->flags & CI_FORBIDDEN)
{
notice_lang(s_BotServ, u, CHAN_X_FORBIDDEN, chan);
return MOD_CONT;
}
-
+
if ((ci->bi) && (stricmp(ci->bi->nick, nick) == 0))
{
notice_lang(s_BotServ, u, BOT_ASSIGN_ALREADY, ci->bi->nick, chan);
return MOD_CONT;
}
-
+
if ((ci->botflags & BS_NOBOT) || (!check_access(u, ci, CA_ASSIGN) && !is_services_admin(u)))
{
notice_lang(s_BotServ, u, PERMISSION_DENIED);
return MOD_CONT;
}
-
+
bi->Assign(u, ci);
notice_lang(s_BotServ, u, BOT_ASSIGN_ASSIGNED, bi->nick, ci->name);
return MOD_CONT;
@@ -80,7 +80,7 @@ class CommandBSAssign : public Command
bool OnHelp(User *u, const std::string &subcommand)
{
- notice_lang(s_BotServ, u, BOT_HELP_ASSIGN);
+ notice_help(s_BotServ, u, BOT_HELP_ASSIGN);
return true;
}