diff options
Diffstat (limited to 'modules/commands/cs_info.cpp')
-rw-r--r-- | modules/commands/cs_info.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/cs_info.cpp b/modules/commands/cs_info.cpp index 591a0f673..310879135 100644 --- a/modules/commands/cs_info.cpp +++ b/modules/commands/cs_info.cpp @@ -97,7 +97,10 @@ class CommandCSInfo : public Command CheckOptStr(optbuf, CI_STATS, _("Chanstats"), ci, nc); info["Options"] = optbuf.empty() ? _("None") : optbuf; - info["Mode lock"] = ci->GetMLockAsString(true); + + const Anope::string &ml = ci->GetMLockAsString(true); + if (!ml.empty()) + info["Mode lock"] = ml; if (!ci->HasFlag(CI_NO_EXPIRE)) info["Expires on"] = do_strftime(ci->last_used + Config->CSExpire); |