From d6d72cd803b2c5bf38e152dc6d00dd6dda720951 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 3 Aug 2014 18:57:00 -0400 Subject: Add cs_mode:max config option --- modules/commands/cs_mode.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/commands/cs_mode.cpp') diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 2943c64a3..7f22d1e26 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -327,6 +327,8 @@ class CommandCSMode : public Command source.Reply(_("Missing parameter for mode %c."), cm->mchar); else if (cm->type == MODE_LIST && ci->c && IRCD->GetMaxListFor(ci->c) && ci->c->HasMode(cm->name) >= IRCD->GetMaxListFor(ci->c)) source.Reply(_("List for mode %c is full."), cm->mchar); + else if (modelocks->GetMLock().size() >= Config->GetModule(this->owner)->Get("max", "32")) + source.Reply(_("The mode lock list of \002%s\002 is full."), ci->name.c_str()); else { modelocks->SetMLock(cm, adding, mode_param, source.GetNick()); -- cgit