diff options
| author | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
| commit | a1b36ec0a527e6d7a9d224b56bf9571619d5f92e (patch) | |
| tree | 5e74290f46205ef1ad86700e1f04ec016b1f66fd /src/botserv.cpp | |
| parent | 48e995ddf2cd30a05222a51e665c02b1e7ae567a (diff) | |
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
Diffstat (limited to 'src/botserv.cpp')
| -rw-r--r-- | src/botserv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/botserv.cpp b/src/botserv.cpp index 48b355f24..9d7c38817 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -51,7 +51,7 @@ void bot_raw_ban(User *requester, ChannelInfo *ci, User *u, const Anope::string if (ModeManager::FindUserModeByName(UMODE_PROTECTED) && u->IsProtected() && requester != u) { - ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", GetString(requester->Account(), ACCESS_DENIED).c_str()); + ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", translate(requester, ACCESS_DENIED)); return; } @@ -62,7 +62,7 @@ void bot_raw_ban(User *requester, ChannelInfo *ci, User *u, const Anope::string if (matches_list(ci->c, u, CMODE_EXCEPT)) { - ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", GetString(requester->Account(), gtl("User matches channel except.")).c_str()); + ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", translate(requester, _("User matches channel except."))); return; } @@ -93,7 +93,7 @@ void bot_raw_kick(User *requester, ChannelInfo *ci, User *u, const Anope::string if (ModeManager::FindUserModeByName(UMODE_PROTECTED) && u->IsProtected() && requester != u) { - ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", GetString(requester->Account(), ACCESS_DENIED).c_str()); + ircdproto->SendPrivmsg(ci->bi, ci->name, "%s", translate(requester, ACCESS_DENIED)); return; } |
