mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix a raw mode character in the nonicks module.
This commit is contained in:
parent
ed699d184a
commit
86ea288926
@ -58,8 +58,8 @@ public:
|
|||||||
bool modeset = memb->chan->IsModeSet(nn);
|
bool modeset = memb->chan->IsModeSet(nn);
|
||||||
if (!extban.GetStatus(user, memb->chan).check(!modeset))
|
if (!extban.GetStatus(user, memb->chan).check(!modeset))
|
||||||
{
|
{
|
||||||
user->WriteNumeric(ERR_CANTCHANGENICK, INSP_FORMAT("Can't change nickname while on {} ({})",
|
user->WriteNumeric(ERR_CANTCHANGENICK, INSP_FORMAT("Can't change nickname while on {} ({})", memb->chan->name,
|
||||||
memb->chan->name, modeset ? "+N is set" : "you're extbanned"));
|
modeset ? INSP_FORMAT("+{} is set", nn.GetModeChar()) : "you're extbanned"));
|
||||||
return MOD_RES_DENY;
|
return MOD_RES_DENY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user