1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 06:23:13 +02:00

BUILD : 1.7.13 (1007)# BUGS : 476 # NOTES : Applied Trystan's patch.

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@732 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-03-13 16:02:30 +00:00
parent 663b243c59
commit ba935451d8
4 changed files with 25 additions and 15 deletions
+3 -1
View File
@@ -46,6 +46,9 @@ Provided by illu. <illu@rs2i.net> - 2006
01/25 F Updated the french language file. [ #00]
Provided by Trystan <trystan@nomadirc.net> - 2006
03/05 F Fixed moduleNoteiceLang() issue. [#469]
03/12 F moduleGetLastBuffer() returning NULL on alias and pseudo clients [#476]
03/12 F nickIsServices() returns correctly for aliases [ #00]
03/01 A Clarity on module loading status numbers. [#435]
03/01 F Applied ultiamte3 chan sqline patch. [#412]
03/01 F Crash when not giving user for moduleGetLangString. [#454]
@@ -53,7 +56,6 @@ Provided by Trystan <trystan@nomadirc.net> - 2006
02/20 F Fixed some TS6 issues with do_cmode() and do_nick() [#396]
02/12 F Double unbanning of in certain conditions. [ #00]
01/25 F va_copy issue for various platforms. [ #00]
03/05 F Fixed moduleNoteiceLang() issue. [#469]
Provided by ThaPrince <jon@vile.com> - 2006
02/28 F fantasy kick now honours protected, just like cs versions. [ #00]
+5 -4
View File
@@ -826,10 +826,11 @@ int nickIsServices(char *tempnick, int bot)
s = strchr(nick, '@');
if (s) {
*s++ = 0;
if (stricmp(s, ServerName) != 0)
free(nick);
return found;
*s++ = 0;
if (stricmp(s, ServerName) != 0) {
free(nick);
return found;
}
}
if (s_NickServ && (stricmp(nick, s_NickServ) == 0))
+12 -9
View File
@@ -20,7 +20,6 @@ extern char *mod_current_module_name;
extern User *mod_current_user;
extern char *mod_current_buffer;
/*************************************************************************/
/*************************************************************************/
/* Use ignore code? */
int allow_ignore = 1;
@@ -139,7 +138,6 @@ IgnoreData *get_ignore(const char *nick)
return ign;
}
/*************************************************************************/
/*************************************************************************/
/* split_buf: Split a buffer into arguments and store the arguments in an
@@ -248,16 +246,21 @@ void process()
av[0] to see if its a service nick if so assign mod_current_buffer the
value from AV[1] else just assign av[0] - TSL */
/* First check if the ircd proto module overrides this -GD */
/* fix to moduleGetLastBuffer() bug 476:
fixed in part by adding {} to nickIsServices()
however if you have a pseudo they could not use moduleGetLastBuffer()
cause they are not part of nickIsServices, even those the ac count is 2
that was ignored and only the first param was passed on which is fine for
Bahmut ircd aliases but not for pseudo clients on. So additional logic is
that if the ac is greater then 1 copy av[1] else copy av[0]
I also changed from if statments, cause attempting to access a array member
that is not set can lead to odd things - TSL (3/12/06) */
if (!anope_set_mod_current_buffer(ac, av)) {
if (av[0]) {
if (ac >= 1) {
if (nickIsServices(av[0], 1)) {
if (av[1]) {
mod_current_buffer = sstrdup(av[1]);
} else {
mod_current_buffer = sstrdup(av[0]);
}
mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
} else {
mod_current_buffer = sstrdup(av[0]);
mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0]));
}
} else {
mod_current_buffer = NULL;
+5 -1
View File
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="13"
VERSION_EXTRA="-svn"
VERSION_BUILD="1006"
VERSION_BUILD="1007"
# $Log$
#
# BUILD : 1.7.13 (1007)
# BUGS : 476
# NOTES : Applied Trystan's patch.
#
# BUILD : 1.7.13 (1006)
# BUGS : 468
# NOTES : Fixed a counting issue in /os stats uplink and ran indent on src/core/os_uplink.c