summaryrefslogtreecommitdiff
path: root/src/modules/account.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-14 18:39:38 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-14 18:39:38 +0000
commite80a1296a096ff2c495b3cd2a3913d5e5f6ec450 (patch)
treeb8e37d6b9eeb0d0bed0ae4d4cbaa249631405c8d /src/modules/account.h
parent37fd031da06761c8a050105b55d73a8ab499fb74 (diff)
Move static map of extensions into ServerInstance, add const-correctness
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/account.h')
-rw-r--r--src/modules/account.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/account.h b/src/modules/account.h
index 9182d7ca6..a5cc49591 100644
--- a/src/modules/account.h
+++ b/src/modules/account.h
@@ -28,4 +28,11 @@ class AccountEvent : public Event
}
};
+typedef StringExtItem AccountExtItem;
+
+inline const AccountExtItem* GetAccountExtItem()
+{
+ return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
+}
+
#endif