mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +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
Notes:
sideshowbarker
2024-07-19 07:47:46 +09:00
Author: https://github.com/bcoles
Commit: 036fb4c621
Pull-request: https://github.com/SerenityOS/serenity/pull/1701
5 changed files with 29 additions and 33 deletions
|
@ -66,6 +66,7 @@ public:
|
|||
|
||||
static bool is_nick_prefix(char);
|
||||
static bool is_channel_prefix(char);
|
||||
String nick_without_prefix(const String& nick);
|
||||
|
||||
IRCWindow* current_window() { return aid_get_active_window(); }
|
||||
const IRCWindow* current_window() const { return aid_get_active_window(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue