1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 18:23:13 +02:00

Rewrote the config reader to better handle invalid configs.

This prevents Anope from exploding when /os reload has errors.
This commit is contained in:
Adam
2010-08-17 19:27:37 -04:00
parent 2575008baa
commit e65d8b2f3d
195 changed files with 3133 additions and 3249 deletions
+3 -3
View File
@@ -104,7 +104,7 @@ class NSMaxEmail : public Module
EventReturn OnPreCommand(User *u, BotInfo *service, const Anope::string &command, const std::vector<Anope::string> &params)
{
if (service == findbot(Config.s_NickServ))
if (service == findbot(Config->s_NickServ))
{
if (command.equals_ci("REGISTER"))
{
@@ -152,9 +152,9 @@ bool check_email_limit_reached(const Anope::string &email, User *u)
return false;
if (NSEmailMax == 1)
me->NoticeLang(Config.s_NickServ, u, LNG_NSEMAILMAX_REACHED_ONE);
me->NoticeLang(Config->s_NickServ, u, LNG_NSEMAILMAX_REACHED_ONE);
else
me->NoticeLang(Config.s_NickServ, u, LNG_NSEMAILMAX_REACHED, NSEmailMax);
me->NoticeLang(Config->s_NickServ, u, LNG_NSEMAILMAX_REACHED, NSEmailMax);
return true;
}