diff options
| author | 2017-11-17 00:02:03 +0000 | |
|---|---|---|
| committer | 2017-11-17 15:33:01 +0000 | |
| commit | 36040be2952186d56a6646ee7d972aaafdd4e31a (patch) | |
| tree | 72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /src/modules/m_ircv3_sts.cpp | |
| parent | Add events which are fired when a service is added or deleted. (diff) | |
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'src/modules/m_ircv3_sts.cpp')
| -rw-r--r-- | src/modules/m_ircv3_sts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ircv3_sts.cpp b/src/modules/m_ircv3_sts.cpp index ee619903a..f3b936b41 100644 --- a/src/modules/m_ircv3_sts.cpp +++ b/src/modules/m_ircv3_sts.cpp @@ -163,7 +163,7 @@ class ModuleIRCv3STS : public Module if (host.empty()) throw ModuleException("<sts:host> must contain a hostname, at " + tag->getTagLocation()); - int port = tag->getInt("port"); + unsigned int port = tag->getInt("port", 0, 0, UINT16_MAX); if (!HasValidSSLPort(port)) throw ModuleException("<sts:port> must be a TLS port, at " + tag->getTagLocation()); |
