diff options
Diffstat (limited to 'src/modules/m_chghost.cpp')
| -rw-r--r-- | src/modules/m_chghost.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index c5e114575..d914fd2a2 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -43,6 +43,12 @@ class cmd_chghost : public command_t return CMD_FAILURE; } } + if (!*parameters[0]) + { + user->WriteServ("NOTICE %s :*** CHGHOST: Host must be specified", user->nick); + return CMD_FAILURE; + } + if ((parameters[1] - x) > 63) { user->WriteServ("NOTICE %s :*** CHGHOST: Host too long",user->nick); |
