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/cs_access.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/commands/cs_access.cpp') diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index 3e737b709..7cfbb303d 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -19,12 +19,12 @@ enum ACCESS_FOUNDER = 10001 }; -static std::map > defaultLevels; +static std::map > defaultLevels; static void reset_levels(ChannelInfo *ci) { ci->ClearLevels(); - for (std::map >::iterator it = defaultLevels.begin(), it_end = defaultLevels.end(); it != it_end; ++it) + for (std::map >::iterator it = defaultLevels.begin(), it_end = defaultLevels.end(); it != it_end; ++it) ci->SetLevel(it->first, it->second); } @@ -286,7 +286,7 @@ class CommandCSAccess : public Command Anope::string mask = params[2]; int level = ACCESS_INVALID; - + try { level = convertTo(params[3]); @@ -736,7 +736,7 @@ class CommandCSLevels : public Command for (unsigned i = 0; i < privs.size(); ++i) { const Privilege &p = privs[i]; - int16 j = ci->GetLevel(p.name); + int16_t j = ci->GetLevel(p.name); if (j == ACCESS_INVALID) source.Reply(_(" %-*s (disabled)"), levelinfo_maxwidth, p.name.c_str()); @@ -918,7 +918,7 @@ class CSAccess : public Module if (group->ci == NULL) return EVENT_CONTINUE; /* Special case. Allows a level of < 0 to match anyone, and a level of 0 to match anyone identified. */ - int16 level = group->ci->GetLevel(priv); + int16_t level = group->ci->GetLevel(priv); if (level < 0) return EVENT_ALLOW; else if (level == 0 && group->nc) -- cgit