Fix a raw mode character in the nonicks module.

This commit is contained in:
Sadie Powell 2025-03-06 09:21:17 +00:00
parent ed699d184a
commit 86ea288926

View File

@ -58,8 +58,8 @@ public:
bool modeset = memb->chan->IsModeSet(nn);
if (!extban.GetStatus(user, memb->chan).check(!modeset))
{
user->WriteNumeric(ERR_CANTCHANGENICK, INSP_FORMAT("Can't change nickname while on {} ({})",
memb->chan->name, modeset ? "+N is set" : "you're extbanned"));
user->WriteNumeric(ERR_CANTCHANGENICK, INSP_FORMAT("Can't change nickname while on {} ({})", memb->chan->name,
modeset ? INSP_FORMAT("+{} is set", nn.GetModeChar()) : "you're extbanned"));
return MOD_RES_DENY;
}
}