diff options
Diffstat (limited to 'src/modules/m_chgname.cpp')
-rw-r--r-- | src/modules/m_chgname.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp index aadf29fdb..3ce1da5ec 100644 --- a/src/modules/m_chgname.cpp +++ b/src/modules/m_chgname.cpp @@ -38,7 +38,7 @@ class CommandChgname : public Command { User* dest = ServerInstance->FindNick(parameters[0]); - if (!dest) + if ((!dest) || (dest->registered != REG_ALL)) { user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel", user->nick.c_str(), parameters[0].c_str()); return CMD_FAILURE; |