1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 22:23:14 +02:00

Show (none) on flags list if a user is on the access list but has no flags

This commit is contained in:
Adam
2013-11-09 05:47:14 -05:00
parent 2a35151d12
commit aa6c3f3474
+4 -1
View File
@@ -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());
}
};