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:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user