From 3e56767a75b38324931f5369a179b56df40395b7 Mon Sep 17 00:00:00 2001 From: killcerr <93478098+killcerr@users.noreply.github.com> Date: Sat, 27 Jul 2024 22:47:08 +0800 Subject: [PATCH] adapt: adapt to GMLIB v0.13.2 --- src/Entry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entry.cpp b/src/Entry.cpp index d2376b2..b899958 100644 --- a/src/Entry.cpp +++ b/src/Entry.cpp @@ -31,7 +31,7 @@ bool Entry::enable() { mI18n->updateOrCreateLanguage("en_US", en_US); mI18n->updateOrCreateLanguage("zh_CN", zh_CN); mI18n->loadAllLanguages(); - mI18n->chooseLanguage(mConfig->language);//maybe + mI18n->chooseLanguage(mConfig->language); // maybe checkBanTimeTask(); RegisterCommands(); listenEvent(); @@ -49,8 +49,8 @@ JsonI18n& Entry::getI18n() { return mI18n.value(); } } // namespace GMBlacklist -LL_REGISTER_PLUGIN(GMBlacklist::Entry, GMBlacklist::Entry::getInstance()); +LL_REGISTER_MOD(GMBlacklist::Entry, GMBlacklist::Entry::getInstance()); std::string tr(std::string const& key, std::vector const& data) { return GMBlacklist::Entry::getInstance()->getI18n().get(key, data); -} \ No newline at end of file +}