From aa6c3f34743079c81124f7f3c2ec6498d259f9a1 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 9 Nov 2013 05:47:14 -0500 Subject: [PATCH] Show (none) on flags list if a user is on the access list but has no flags --- modules/commands/cs_flags.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); } };