From e80ed02235bcd7d4e3614fc62c85b03d4a6fb155 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 31 Dec 2006 02:47:02 +0000 Subject: Casting for conciseness git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6190 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chghost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chghost.cpp') 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() -- cgit v1.2.3