diff options
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r-- | src/modules/m_sethost.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 149795696..7bc01e118 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -37,6 +37,11 @@ class cmd_sethost : public command_t void Handle (char **parameters, int pcnt, userrec *user) { + if (strlen(parameters[0]) > 64) + { + WriteServ(user->fd,"NOTICE %s :*** SETHOST: Host too long",user->nick); + return; + } for (unsigned int x = 0; x < strlen(parameters[0]); x++) { if (((tolower(parameters[0][x]) < 'a') || (tolower(parameters[0][x]) > 'z')) && (parameters[0][x] != '.')) |