diff options
author | Sadie Powell <sadie@witchery.services> | 2024-06-03 15:51:29 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-06-03 16:04:53 +0100 |
commit | e71a9e289441fd78ffa1bd3d8c20ea2cb8542426 (patch) | |
tree | 95def1c721754ed095e2ca9654892343f611a953 /include/users.h | |
parent | f80bdf06bace6d3e5c50ed982fe1c14451ae4518 (diff) |
Avoid NickAlias lookups by storing a pointer in the NickCore.
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h index 85435dd0f..fb740ab94 100644 --- a/include/users.h +++ b/include/users.h @@ -215,6 +215,11 @@ public: */ NickCore *Account() const; + /** Get the account nick the user is logged in using + * @return The account nick or NULL + */ + NickAlias *AccountNick() const; + /** Check if the user is identified for their nick * @param check_nick True to check if the user is identified to the nickname they are on too * @return true or false |