summaryrefslogtreecommitdiff
path: root/src/modules/m_chghost.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-01-07 23:28:01 +0000
committerPeter Powell <petpow@saberuk.com>2018-01-07 23:28:01 +0000
commit4b7b332b9419a01476b813419d89d11c43e1f844 (patch)
tree983962dd18e69641cb66f5ea20b6a09619f6e2db /src/modules/m_chghost.cpp
parentcd43acedc947777b297fa80f20c93088dea29003 (diff)
Fix some char signedness oversights when using bitsets.
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r--src/modules/m_chghost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index cda13c976..10e447b45 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -47,7 +47,7 @@ class CommandChghost : public Command
for (std::string::const_iterator x = parameters[1].begin(); x != parameters[1].end(); x++)
{
- if (!hostmap.test(*x))
+ if (!hostmap.test(static_cast<unsigned char>(*x)))
{
user->WriteNotice("*** CHGHOST: Invalid characters in hostname");
return CMD_FAILURE;
@@ -98,7 +98,7 @@ class ModuleChgHost : public Module
cmd.hostmap.reset();
for (std::string::iterator n = hmap.begin(); n != hmap.end(); n++)
- cmd.hostmap.set(*n);
+ cmd.hostmap.set(static_cast<unsigned char>(*n));
}
Version GetVersion() CXX11_OVERRIDE