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

Just store lang strings in a char array, no need for the extra overhead of STL strings

This commit is contained in:
Adam
2010-11-07 17:10:19 -05:00
parent 4ec661c0bb
commit 28aba58e25
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ E const Anope::string GetString(LanguageString string);
E const Anope::string GetString(NickCore *nc, LanguageString string);
E const Anope::string GetString(User *u, LanguageString string);
E const Anope::string GetString(const char *domain, Anope::string language, const Anope::string &string);
E Anope::string language_strings[LANG_STRING_COUNT];
E const char *const language_strings[LANG_STRING_COUNT];
E void SyntaxError(BotInfo *bi, User *u, const Anope::string &command, LanguageString message);
/*** logger.cpp ***/
+1 -2
View File
@@ -133,8 +133,7 @@ void SyntaxError(BotInfo *bi, User *u, const Anope::string &command, LanguageStr
u->SendMessage(bi, MORE_INFO, bi->nick.c_str(), command.c_str());
}
Anope::string language_strings[LANG_STRING_COUNT] = {
/* LANGUAGE_NAME */
const char *const language_strings[LANG_STRING_COUNT] = {
_("English"),
/* COMMAND_REQUIRES_PERM */
_("Access to this command requires the permission %s to be present in your opertype."),