1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 21:03:13 +02:00

Fixed /ns alist

This commit is contained in:
Adam
2011-05-30 13:14:33 -04:00
parent 60548aa00b
commit b2c807dc8c
+5 -2
View File
@@ -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;
}
}
}