diff options
author | Sadie Powell <sadie@witchery.services> | 2021-08-01 18:53:24 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-08-01 18:53:24 +0100 |
commit | 561b205c4a3a125c12a7926ef18fa1eb822c387c (patch) | |
tree | c763ddefe765e23ec0ff189e24d55f634b52b954 /modules/commands/cs_mode.cpp | |
parent | 376053e0acae2a37a8f5c77c8de25ebf8a8395a9 (diff) | |
parent | 91321bdf682eb5b512373bb56c722f943cbc8183 (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index d5129fdc6..0f6378036 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -336,7 +336,7 @@ class CommandCSMode : public Command continue; } - if (cm->type == MODE_LIST && ci->c && IRCD->GetMaxListFor(ci->c) && ci->c->HasMode(cm->name) >= IRCD->GetMaxListFor(ci->c)) + if (cm->type == MODE_LIST && ci->c && IRCD->GetMaxListFor(ci->c, cm) && ci->c->HasMode(cm->name) >= IRCD->GetMaxListFor(ci->c, cm)) { source.Reply(_("List for mode %c is full."), cm->mchar); continue; @@ -660,7 +660,7 @@ class CommandCSMode : public Command if (adding) { - if (IRCD->GetMaxListFor(ci->c) && ci->c->HasMode(cm->name) < IRCD->GetMaxListFor(ci->c)) + if (IRCD->GetMaxListFor(ci->c, cm) && ci->c->HasMode(cm->name) < IRCD->GetMaxListFor(ci->c, cm)) ci->c->SetMode(NULL, cm, param); } else |