diff options
| author | Adam <Adam@anope.org> | 2011-05-30 13:14:33 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-05-30 13:14:33 -0400 |
| commit | b2c807dc8c30bfd614dc44c68f794b8fc30cc7e6 (patch) | |
| tree | 2706386b82ebbdc495e79a0f1c586d48f94734eb /modules | |
| parent | 60548aa00beee50b20bc0742d1dafc3a69c6fb20 (diff) | |
Fixed /ns alist
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/core/ns_alist.cpp | 7 |
1 files 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<int>(lev); } - catch (const ConvertException &) { } + catch (const ConvertException &) + { + min_level = ACCESS_INVALID; + } } } |
