mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
IRCClient: Add nick_without_prefix and nick_at helpers
`IRCChannelMemberListModel->nick_at` returns the nick name of a channel member at the specified index. `IRCClient->nick_without_prefix` returns a formatted nick name without privilege prefix.
This commit is contained in:
committed by
Andreas Kling
parent
66f7c8e0e8
commit
036fb4c621
@@ -81,3 +81,8 @@ void IRCChannelMemberListModel::update()
|
||||
{
|
||||
did_update();
|
||||
}
|
||||
|
||||
String IRCChannelMemberListModel::nick_at(const GUI::ModelIndex& index) const
|
||||
{
|
||||
return data(index, IRCChannelMemberListModel::Role::Display).to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user