]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/account.h
Add RAWIO log level which is more verbose than DEBUG
[user/henk/code/inspircd.git] / src / modules / account.h
index 8b86a178bc7071e1b56e3e7fdea5cbd9f6eb96e2..8f4631cc8d41dff2dfadca3c68937e2c49e43dfe 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
 #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 AccountExtItem* GetAccountExtItem()
+{
+       return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
+}
+
 #endif