]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/account.h
Send module load/unload notifications so that services can learn of new features...
[user/henk/code/inspircd.git] / src / modules / account.h
index 9182d7ca6c3b254ea66a1a5f739ede8a8d241b56..88b86f8e254f1e07e584470ccebc708fd5dd66ec 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -28,4 +28,11 @@ class AccountEvent : public Event
        }
 };
 
+typedef StringExtItem AccountExtItem;
+
+inline const AccountExtItem* GetAccountExtItem()
+{
+       return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
+}
+
 #endif