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 /src/sessions.cpp | |
parent | 05e6815d912f0418f6da25a2106dd718796f02fa (diff) |
Changed the language system to use gettext
Diffstat (limited to 'src/sessions.cpp')
-rw-r--r-- | src/sessions.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/sessions.cpp b/src/sessions.cpp index dca3f7c63..a0ad66618 100644 --- a/src/sessions.cpp +++ b/src/sessions.cpp @@ -11,7 +11,6 @@ #include "services.h" #include "modules.h" -#include "language.h" /*************************************************************************/ @@ -39,10 +38,7 @@ * "Session Limiting" is likely to slow down services when there are frequent * client connects and disconnects. The size of the exception list can also * play a large role in this performance decrease. It is therefore recommened - * that you keep the number of exceptions to a minimum. A very simple hashing - * method is currently used to store the list of sessions. I'm sure there is - * room for improvement and optimisation of this, along with the storage of - * exceptions. Comments and suggestions are more than welcome! + * that you keep the number of exceptions to a minimum. * * -TheShadow (02 April 1999) */ @@ -272,13 +268,13 @@ int exception_add(User *u, const Anope::string &mask, int limit, const Anope::st { e->limit = limit; if (u) - notice_lang(Config->s_OperServ, u, OPER_EXCEPTION_CHANGED, mask.c_str(), e->limit); + u->SendMessage(OperServ, OPER_EXCEPTION_CHANGED, mask.c_str(), e->limit); return -2; } else { if (u) - notice_lang(Config->s_OperServ, u, OPER_EXCEPTION_EXISTS, mask.c_str()); + u->SendMessage(OperServ, OPER_EXCEPTION_EXISTS, mask.c_str()); return -1; } } |