X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Faccount.h;h=88b86f8e254f1e07e584470ccebc708fd5dd66ec;hb=04cfaea87edd1b4b742cb607ea69ece760c460aa;hp=c3057e6d4879f4dacf32bd091be58466ed1a9821;hpb=4f946291b7fd022b50fe5aacb9b851cebfbb2278;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/account.h b/src/modules/account.h index c3057e6d4..88b86f8e2 100644 --- a/src/modules/account.h +++ b/src/modules/account.h @@ -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. @@ -17,11 +17,22 @@ #include #include -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(ServerInstance->Extensions.GetItem("accountname")); +} + #endif