mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +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:
parent
66f7c8e0e8
commit
036fb4c621
5 changed files with 29 additions and 33 deletions
|
@ -45,6 +45,7 @@ public:
|
|||
virtual ColumnMetadata column_metadata(int column) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, Role = Role::Display) const override;
|
||||
virtual void update() override;
|
||||
virtual String nick_at(const GUI::ModelIndex& index) const;
|
||||
|
||||
private:
|
||||
explicit IRCChannelMemberListModel(IRCChannel&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue