- user->WriteNumeric(447, "%s :Can't change nickname while on %s (+N is set)", user->nick, curr->name);
- return 1;
- }
+ if (curr->IsModeSet('N') || curr->GetExtBanStatus(user, 'N') < 0)
+ {
+ user->WriteNumeric(ERR_CANTCHANGENICK, "%s :Can't change nickname while on %s (+N is set)", user->nick.c_str(), curr->name.c_str());
+ return 1;