ModResult OnUserPreNick(User* user, const std::string &newnick)
{
- if (isdigit(newnick[0])) /* allow switches to UID */
+ if (ServerInstance->NICKForced.get(user)) /* Allow forced nick changes */
return MOD_RES_PASSTHRU;
for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
Version GetVersion()
{
- return Version("Channel mode F - nick flood protection", VF_COMMON | VF_VENDOR);
+ return Version("Channel mode F - nick flood protection", VF_VENDOR);
}
};