summaryrefslogtreecommitdiff
path: root/modules/commands/cs_flags.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-09 05:47:14 -0500
committerAdam <Adam@anope.org>2013-11-09 05:47:14 -0500
commitaa6c3f34743079c81124f7f3c2ec6498d259f9a1 (patch)
treeacbbf3d451fb2e7a12d74ff5b9922cceb1cb682f /modules/commands/cs_flags.cpp
parent2a35151d12e3911f5a15c1b16a85e87fda9e5b46 (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.cpp5
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());
}
};