mirror of
https://github.com/anope/anope.git
synced 2026-07-07 00:43:14 +02:00
BUILD : 1.7.13 (977) BUGS : 461 463 NOTES : happy bug-fixing-day to all of you.
git-svn-id: svn://svn.anope.org/anope/trunk@977 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@702 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
aff742a18e
commit
79fbeb90c1
@@ -197,6 +197,8 @@ int do_bot(User * u)
|
||||
notice_lang(s_BotServ, u, BOT_DOES_NOT_EXIST, oldnick);
|
||||
else if (strlen(nick) > NickLen)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_NICK);
|
||||
else if (strlen(user) >= USERMAX)
|
||||
notice_lang(s_BotServ, u, BOT_BAD_IDENT);
|
||||
else {
|
||||
NickAlias *na;
|
||||
|
||||
|
||||
@@ -136,9 +136,6 @@ static int access_list_callback(User * u, int num, va_list args)
|
||||
* The /cs access command.
|
||||
* @param u The user who issued the command
|
||||
* @param MOD_CONT to continue processing other modules, MOD_STOP to stop processing.
|
||||
*
|
||||
* Known bug: EVENT_ACCESS_DEL won't be triggered if you use numbers instead of nicks.
|
||||
* -Certus
|
||||
**/
|
||||
int do_access(User * u)
|
||||
{
|
||||
@@ -346,8 +343,12 @@ int do_access(User * u)
|
||||
}
|
||||
}
|
||||
}
|
||||
/* We don't know the nick if someone used numbers, so we trigger the event without
|
||||
* nick param. We just do this once, even if someone enters a range. -Certus */
|
||||
if (na)
|
||||
send_event(EVENT_ACCESS_DEL, 3, ci->name, u->nick, na->nick);
|
||||
else
|
||||
send_event(EVENT_ACCESS_DEL, 2, ci->name, u->nick);
|
||||
}
|
||||
} else if (stricmp(cmd, "LIST") == 0) {
|
||||
int sent_header = 0;
|
||||
|
||||
@@ -81,6 +81,10 @@ int do_forbid(User * u)
|
||||
CHAN_FORBID_SYNTAX));
|
||||
return MOD_CONT;
|
||||
}
|
||||
if (*chan != '#') {
|
||||
notice_lang(s_ChanServ, u, CHAN_SYMBOL_REQUIRED);
|
||||
return MOD_CONT;
|
||||
}
|
||||
if (readonly)
|
||||
notice_lang(s_ChanServ, u, READ_ONLY_MODE);
|
||||
if ((ci = cs_findchan(chan)) != NULL)
|
||||
|
||||
Reference in New Issue
Block a user