diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chghost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 7d629187f..f3bc6b1ae 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -40,7 +40,7 @@ class cmd_chghost : public command_t for (; *x; x++) { - if (!hostmap[*x]) + if (!hostmap[(unsigned char)*x]) { user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Invalid characters in hostname"); return CMD_FAILURE; @@ -96,7 +96,7 @@ class ModuleChgHost : public Module memset(&hostmap, 0, sizeof(hostmap)); for (std::string::iterator n = hmap.begin(); n != hmap.end(); n++) - hostmap[*n] = 1; + hostmap[(unsigned char)*n] = 1; } ~ModuleChgHost() |