1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:46:39 +02:00

BUILD : 1.7.3 (117) BUGS : 63 NOTES : Auto enforce upon AKICK addition.

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@91 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-05-21 12:20:08 +00:00
parent 51ebfab6a4
commit 89e802e165
3 changed files with 39 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
Anope Version S V N
-------------------
Provided by Anope Dev. <dev@anope.org> - 2004
05/21 A Auto enforce upon AKICK addition. [ #63]
05/21 A New file docs/OLDCHANGES contains all change history. [ #65]
05/21 F Removed threads.c file. [ #64]
+33
View File
@@ -4463,8 +4463,41 @@ static int do_akick(User * u)
} else {
akick->reason = NULL;
}
/* Auto ENFORCE #63 */
Channel *c = findchan(ci->name);
struct c_userlist *cu = NULL;
struct c_userlist *next;
char *argv[3];
int count = 0;
if (c) {
cu = c->users;
while (cu) {
next = cu->next;
if (check_kick(cu->user, c->name)) {
argv[0] = sstrdup(c->name);
argv[1] = sstrdup(cu->user->nick);
argv[2] = sstrdup(akick->reason);
do_kick(s_ChanServ, 3, argv);
free(argv[2]);
free(argv[1]);
free(argv[0]);
count++;
}
cu = next;
}
}
notice_lang(s_ChanServ, u, CHAN_AKICK_ADDED, mask, chan);
if (count)
notice_lang(s_ChanServ, u, CHAN_AKICK_ENFORCE_DONE, chan,
count);
} else if (stricmp(cmd, "STICK") == 0) {
NickAlias *na;
NickCore *nc;
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="3"
VERSION_BUILD="116"
VERSION_BUILD="117"
# $Log$
#
# BUILD : 1.7.3 (117)
# BUGS : 63
# NOTES : Auto enforce upon AKICK addition.
#
# BUILD : 1.7.3 (116)
# BUGS : 65
# NOTES : New file docs/OLDCHANGES