From b2c807dc8c30bfd614dc44c68f794b8fc30cc7e6 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 30 May 2011 13:14:33 -0400 Subject: [PATCH] Fixed /ns alist --- modules/core/ns_alist.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/core/ns_alist.cpp b/modules/core/ns_alist.cpp index cf0807709..863cf68e1 100644 --- a/modules/core/ns_alist.cpp +++ b/modules/core/ns_alist.cpp @@ -61,7 +61,7 @@ class CommandNSAList : public Command Anope::string lev = params.size() > lev_param ? params[lev_param] : ""; /* if a level was given, make sure it's an int for later */ - int min_level = ACCESS_INVALID; + int min_level = 0; if (!lev.empty()) { if (lev.equals_ci("FOUNDER")) @@ -80,7 +80,10 @@ class CommandNSAList : public Command { min_level = convertTo(lev); } - catch (const ConvertException &) { } + catch (const ConvertException &) + { + min_level = ACCESS_INVALID; + } } }