summaryrefslogtreecommitdiff
path: root/include/account.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-03 15:51:29 +0100
committerSadie Powell <sadie@witchery.services>2024-06-03 16:04:53 +0100
commite71a9e289441fd78ffa1bd3d8c20ea2cb8542426 (patch)
tree95def1c721754ed095e2ca9654892343f611a953 /include/account.h
parentf80bdf06bace6d3e5c50ed982fe1c14451ae4518 (diff)
Avoid NickAlias lookups by storing a pointer in the NickCore.
Diffstat (limited to 'include/account.h')
-rw-r--r--include/account.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/account.h b/include/account.h
index b6a69cfcf..57ca5b506 100644
--- a/include/account.h
+++ b/include/account.h
@@ -145,6 +145,8 @@ public:
/* Unsaved data */
+ /** The display nick for this account. */
+ NickAlias *na = nullptr;
/* Number of channels registered by this account */
uint16_t channelcount = 0;
/* Users online now logged into this account */
@@ -163,7 +165,7 @@ public:
/** Changes the display for this account
* @param na The new display, must be grouped to this account.
*/
- void SetDisplay(const NickAlias *na);
+ void SetDisplay(NickAlias *na);
/** Checks whether this account is a services oper or not.
* @return True if this account is a services oper, false otherwise.