diff options
author | Brendan Coles <bcoles@gmail.com> | 2020-04-08 16:45:00 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-08 18:42:01 +0200 |
commit | 036fb4c62188f984a4eefa4948d1b807320463da (patch) | |
tree | 22d1efdd03fe2df88e74be50b1f9910570d8a13a /Applications/IRCClient/IRCClient.h | |
parent | 66f7c8e0e87e7b60ff87b5ab7d8375684834b1ab (diff) | |
download | serenity-036fb4c62188f984a4eefa4948d1b807320463da.zip |
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.
Diffstat (limited to 'Applications/IRCClient/IRCClient.h')
-rw-r--r-- | Applications/IRCClient/IRCClient.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/IRCClient/IRCClient.h b/Applications/IRCClient/IRCClient.h index c116e14797..a9a3b81e22 100644 --- a/Applications/IRCClient/IRCClient.h +++ b/Applications/IRCClient/IRCClient.h @@ -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(); } |