diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-31 02:47:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-31 02:47:02 +0000 |
commit | e80ed02235bcd7d4e3614fc62c85b03d4a6fb155 (patch) | |
tree | f00e6a864ac0299e3a8d25399cc59fe0e8df54b3 /src/modules/m_chghost.cpp | |
parent | 138fb540716d12bf1f89ec484d3210d921f9f3f7 (diff) |
Casting for conciseness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6190 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_chghost.cpp')
-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() |