1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 00:36:37 +02:00

BUILD : 1.7.6 (524) BUGS : NOTES : bot_raw_ban was not adjusted for TSMODE capable IRCDs yet

git-svn-id: svn://svn.anope.org/anope/trunk@524 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@378 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-01-05 20:12:47 +00:00
parent db826b63e1
commit 8dfbdaeae6
3 changed files with 32 additions and 8 deletions
+1
View File
@@ -16,6 +16,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004
11/19 A Added anope_cmd_ctcp() to code API, for sending CTCP messages. [ #00]
11/18 A Unable to use registered nicknames as bot nicks from now on. [ #00]
11/18 A NSAddAccessOnReg to control access list on registration. [ #00]
01/05 F BotServ's banning would trigger a TSMODE error on a capable IRCd. [ #00]
01/05 F Not resetting the topic on channel creation with KEEPTOPIC off. [#267]
01/04 F Fixed up some alog() messages that were incorrect. [#266]
01/01 F Ultimate3 channel modes, which had been defined incorrectly. [ #00]
+26 -7
View File
@@ -1061,8 +1061,10 @@ static void bot_kick(ChannelInfo * ci, User * u, int message, ...)
static void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick,
char *reason)
{
char *av[3];
int ac;
char *av[4];
char mask[BUFSIZE];
char buf[BUFSIZE];
User *u = finduser(nick);
if (!u)
@@ -1088,13 +1090,30 @@ static void bot_raw_ban(User * requester, ChannelInfo * ci, char *nick,
}
}
av[0] = ci->name;
av[1] = sstrdup("+b");
get_idealban(ci, u, mask, sizeof(mask));
av[2] = mask;
anope_cmd_mode(ci->bi->nick, av[0], "+b %s", av[2]);
do_cmode(ci->bi->nick, 3, av);
free(av[1]);
if (ircdcap->tsmode) {
snprintf(buf, BUFSIZE - 1, "%ld", (long int) time(NULL));
av[0] = ci->name;
av[1] = buf;
av[2] = sstrdup("+b");
av[3] = mask;
ac = 4;
} else {
av[0] = ci->name;
av[1] = sstrdup("+b");
av[2] = mask;
ac = 3;
}
anope_cmd_mode(ci->bi->nick, ci->name, "+b %s", mask);
do_cmode(ci->bi->nick, ac, av);
/* We need to free our sstrdup'd "+b" -GD */
if (ircdcap->tsmode)
free(av[2]);
else
free(av[1]);
av[0] = ci->name;
av[1] = nick;
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="6"
VERSION_BUILD="523"
VERSION_BUILD="524"
# $Log$
#
# BUILD : 1.7.6 (524)
# BUGS :
# NOTES : bot_raw_ban was not adjusted for TSMODE capable IRCDs yet
#
# BUILD : 1.7.6 (523)
# BUGS : 267
# NOTES : Internal last topic was not emptied on channel creation when KEEPTOPIC was off