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

BUILD : 1.7.14 (1120) BUGS : N/A NOTES : ok last time with the lang file thing

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@844 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-08-06 08:40:50 +00:00
parent faf12e657b
commit 7603d145b2
2 changed files with 11 additions and 12 deletions
+5 -11
View File
@@ -160,21 +160,15 @@ void lang_sanitize()
for (j = 0; j < NUM_STRINGS; j++) {
if (strstr(langtexts[i][j], "%R")) {
len = strlen(langtexts[i][j]);
strscpy(tmp, langtexts[i][j], sizeof(tmp));
if (UseStrictPrivMsg) {
langtexts[i][j] =
strnrepl(langtexts[i][j], len, "%R", "/");
strnrepl(tmp, sizeof(tmp), "%R", "/");
} else {
strscpy(tmp, langtexts[i][j], sizeof(tmp));
strnrepl(tmp, sizeof(tmp), "%R", "/msg ");
newstr = sstrdup(tmp);
free(langtexts[i][j]);
langtexts[i][j] = newstr;
/* strncpy(tmp,langtexts[i][j],len);
free(langtexts[i][j]);
langtexts[i][j] = tmp;
langtexts[i][j] =
strnrepl(langtexts[i][j], len + 5, "%R", "/msg ");*/
}
newstr = sstrdup(tmp);
free(langtexts[i][j]);
langtexts[i][j] = newstr;
}
}
}
+6 -1
View File
@@ -9,10 +9,15 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
VERSION_BUILD="1119"
VERSION_BUILD="1120"
# $Log$
#
# BUILD : 1.7.14 (1120)
# BUGS : N/A
# NOTES : ok last time with the lang file thing
#
#
# BUILD : 1.7.14 (1119)
# BUGS : N/A
# NOTES : Should have fixed my stupid segfault