1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 14:56:38 +02:00

BUILD : 1.7.14 (1112) BUGS : 565 NOTES : %M will now be replaced by either /msg or / depending on UseStrictPrivMsg - we still need to update the .l files for all langauges tho.

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


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@836 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-08-05 20:01:44 +00:00
parent d61eebd738
commit 863f7fdb6d
4 changed files with 33 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006
08/05 F Support for SVSJOIN/SVSPART/SWHOIS in protocol modules. [#566]
08/05 F os_info save on unload. [#523]
08/05 F Externed doValidHost call for modules to use. [#570]
08/05 F Lang files now support %M for use with StrictPrivMsg. [#565]
Provided by ThaPrince <jon@vile.com> - 2006
05/19 A Plexus 3 support. [ #00]
+1 -1
View File
@@ -141,7 +141,7 @@ USER_RECORD_NOT_FOUND
UNKNOWN_COMMAND
Unknown command %s.
UNKNOWN_COMMAND_HELP
Unknown command %s. "/msg %s HELP" for help.
Unknown command %s. "%M%s HELP" for help.
SYNTAX_ERROR
Syntax: %s
MORE_INFO
+25
View File
@@ -149,6 +149,30 @@ static void load_lang(int index, const char *filename)
/*************************************************************************/
/* Replace all %M's with "/msg " or "/" */
void lang_sanitize()
{
int i = 0, j = 0;
int len = 0;
char buf[256];
for (i = 0; i < NUM_LANGS; i++) {
for (j = 0; j < NUM_STRINGS; j++) {
if (strstr(langtexts[i][j], "%M")) {
len = strlen(langtexts[i][j]);
if (UseStrictPrivMsg) {
langtexts[i][j] =
strnrepl(langtexts[i][j], len, "%M", "/");
} else {
langtexts[i][j] = realloc(langtexts[i][j], len + 5);
langtexts[i][j] =
strnrepl(langtexts[i][j], len + 5, "%M", "/msg ");
}
}
}
}
}
/* Initialize list of lists. */
void lang_init()
@@ -198,6 +222,7 @@ void lang_init()
if (!langtexts[i])
langtexts[i] = langtexts[DEF_LANGUAGE];
}
lang_sanitize();
}
/*************************************************************************/
+6 -1
View File
@@ -9,10 +9,15 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
VERSION_BUILD="1111"
VERSION_BUILD="1112"
# $Log$
#
# BUILD : 1.7.14 (1112)
# BUGS : 565
# NOTES : %M will now be replaced by either /msg or / depending on UseStrictPrivMsg - we still need to update the .l files for all langauges tho.
#
#
# BUILD : 1.7.14 (1111)
# BUGS : 570
# NOTES : Allow doValidHost to be called from modules.