aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/room.cpp b/room.cpp
index 6c22b338..49517ab9 100644
--- a/room.cpp
+++ b/room.cpp
@@ -370,6 +370,16 @@ QList< User* > Room::users() const
return d->membersMap.values();
}
+QStringList Room::memberNames() const {
+ QStringList res;
+
+ for (auto u : d->membersMap.values()) {
+ res.append( this->roomMembername(u) );
+ }
+
+ return res;
+}
+
void Room::Private::insertMemberIntoMap(User *u)
{
auto namesakes = membersMap.values(u->name());