diff options
author | Adam <Adam@anope.org> | 2010-09-26 02:33:01 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-26 02:33:01 -0400 |
commit | d646d455e2655be59f6d5bcc56710ac70548ca37 (patch) | |
tree | d236b9d4991d62538a0318f213416396734e72e0 /modules/extra/db_mysql.cpp | |
parent | 05e6815d912f0418f6da25a2106dd718796f02fa (diff) |
Changed the language system to use gettext
Diffstat (limited to 'modules/extra/db_mysql.cpp')
-rw-r--r-- | modules/extra/db_mysql.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/db_mysql.cpp b/modules/extra/db_mysql.cpp index eb55a3952..b15ce4de4 100644 --- a/modules/extra/db_mysql.cpp +++ b/modules/extra/db_mysql.cpp @@ -291,13 +291,13 @@ class CommandSQLSync : public Command bool OnHelp(User *u, const Anope::string &subcommand) { - notice_help(Config->s_OperServ, u, OPER_HELP_SYNC); + u->SendMessage(OperServ, OPER_HELP_SYNC); return true; } void OnServHelp(User *u) { - notice_lang(Config->s_OperServ, u, OPER_HELP_CMD_SQLSYNC); + u->SendMessage(OperServ, OPER_HELP_CMD_SQLSYNC); } }; @@ -429,7 +429,7 @@ class DBMySQL : public Module } } - nc->language = r.Get(i, "language").is_number_only() ? convertTo<int>(r.Get(i, "language")) : LANG_EN_US; + nc->language = r.Get(i, "language"); nc->channelcount = r.Get(i, "channelcount").is_number_only() ? convertTo<int>(r.Get(i, "channelcount")) : 0; nc->memos.memomax = r.Get(i, "memomax").is_number_only() ? convertTo<int>(r.Get(i, "memomax")) : 20; } @@ -1533,7 +1533,7 @@ static void SaveDatabases() CommandReturn CommandSQLSync::Execute(User *u, const std::vector<Anope::string> ¶ms) { SaveDatabases(); - notice_lang(Config->s_OperServ, u, OPER_SYNC_UPDATED); + u->SendMessage(OperServ, OPER_SYNC_UPDATED); return MOD_CONT; } |