diff options
author | Adam <Adam@anope.org> | 2013-11-09 05:47:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-09 05:47:14 -0500 |
commit | aa6c3f34743079c81124f7f3c2ec6498d259f9a1 (patch) | |
tree | acbbf3d451fb2e7a12d74ff5b9922cceb1cb682f /modules/commands/cs_flags.cpp | |
parent | 2a35151d12e3911f5a15c1b16a85e87fda9e5b46 (diff) |
Show (none) on flags list if a user is on the access list but has no flags
Diffstat (limited to 'modules/commands/cs_flags.cpp')
-rw-r--r-- | modules/commands/cs_flags.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp index 871a094ee..6c65a72cb 100644 --- a/modules/commands/cs_flags.cpp +++ b/modules/commands/cs_flags.cpp @@ -52,7 +52,10 @@ class FlagsChanAccess : public ChanAccess if (access->HasPriv(it->first)) buffer.insert(it->second); - return Anope::string(buffer.begin(), buffer.end()); + if (buffer.empty()) + return "(none)"; + else + return Anope::string(buffer.begin(), buffer.end()); } }; |