aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-21 09:01:48 +0000
committerGravatar Sadie Powell2021-12-28 13:19:22 +0000
commit4c931b6f6acbb3bc77d3d60d6a67d9d8cf867e76 (patch)
tree038599233bd87ad93832aa336ff7aa0c6691a8ad /include
parentFix not being able to look up hostnames that point to multiple IPs. (diff)
Send an account id tag when account-tag & message-tags are enabled.
Diffstat (limited to 'include')
-rw-r--r--include/modules/account.h5
-rw-r--r--include/modules/ircv3.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/include/modules/account.h b/include/modules/account.h
index eb478b948..3ec01b3e8 100644
--- a/include/modules/account.h
+++ b/include/modules/account.h
@@ -36,6 +36,11 @@ inline AccountExtItem* GetAccountExtItem()
return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
}
+inline AccountExtItem* GetAccountIdExtItem()
+{
+ return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountid"));
+}
+
class AccountEventListener : public Events::ModuleEventListener
{
public:
diff --git a/include/modules/ircv3.h b/include/modules/ircv3.h
index 21fb77c33..577cb1841 100644
--- a/include/modules/ircv3.h
+++ b/include/modules/ircv3.h
@@ -104,4 +104,7 @@ class IRCv3::CapTag : public ClientProtocol::MessageTagProvider
, tagname(Tagname)
{
}
+
+ /** Retrieves the underlying capability. */
+ const Cap::Capability& GetCap() const { return cap; }
};