]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/account.h
Add access checking for m_autoop
[user/henk/code/inspircd.git] / src / modules / account.h
index c3057e6d4879f4dacf32bd091be58466ed1a9821..88b86f8e254f1e07e584470ccebc708fd5dd66ec 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *         the file COPYING for details.
 #include <map>
 #include <string>
 
-class AccountData : public classbase
+class AccountEvent : public Event
 {
  public:
-       User* user;
-       std::string account;
+       User* const user;
+       const std::string account;
+       AccountEvent(Module* me, User* u, const std::string& name)
+               : Event(me, "account_login"), user(u), account(name)
+       {
+       }
 };
 
+typedef StringExtItem AccountExtItem;
+
+inline const AccountExtItem* GetAccountExtItem()
+{
+       return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
+}
+
 #endif