From 377a7a968b6a906f262a45abea9a563ffc471938 Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Mon, 24 Oct 2011 16:32:29 -0400 Subject: 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. --- modules/commands/ms_set.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/commands/ms_set.cpp') 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(p1); + limit = convertTo(p1); } catch (const ConvertException &) { } } @@ -160,7 +160,7 @@ class CommandMSSet : public Command limit = -1; try { - limit = convertTo(p1); + limit = convertTo(p1); } catch (const ConvertException &) { } /* The first character is a digit, but we could still go negative -- cgit