diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-10-24 16:32:29 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2011-10-24 16:32:29 -0400 |
commit | 377a7a968b6a906f262a45abea9a563ffc471938 (patch) | |
tree | 3743f5d564bd7b40db5659bf6e18dd102b5c5c19 /modules/commands/ms_set.cpp | |
parent | d0513d6506ce34b57874ad265daf38ca67878aa0 (diff) |
Fixed bug #1349 (m_sqlite compiles without error under FreeBSD), as well as use C99's stdint.h (or cstdint if available) to get (u)intX_t types instead of our stupid typedefs. pstdint.h included in case there is no cstdint or stdint.h available.
Diffstat (limited to 'modules/commands/ms_set.cpp')
-rw-r--r-- | modules/commands/ms_set.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/ms_set.cpp b/modules/commands/ms_set.cpp index ef3480fd5..7ce1960ed 100644 --- a/modules/commands/ms_set.cpp +++ b/modules/commands/ms_set.cpp @@ -75,7 +75,7 @@ class CommandMSSet : public Command Anope::string p2 = params.size() > 2 ? params[2] : ""; Anope::string p3 = params.size() > 3 ? params[3] : ""; Anope::string user, chan; - int16 limit; + int16_t limit; NickCore *nc = u->Account(); ChannelInfo *ci = NULL; bool is_servadmin = u->HasPriv("memoserv/set-limit"); @@ -136,7 +136,7 @@ class CommandMSSet : public Command limit = -1; try { - limit = convertTo<int16>(p1); + limit = convertTo<int16_t>(p1); } catch (const ConvertException &) { } } @@ -160,7 +160,7 @@ class CommandMSSet : public Command limit = -1; try { - limit = convertTo<int16>(p1); + limit = convertTo<int16_t>(p1); } catch (const ConvertException &) { } /* The first character is a digit, but we could still go negative |