]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/account.h
Fixes for bug #12
[user/henk/code/inspircd.git] / src / modules / account.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *          the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef ACCOUNT_H
15 #define ACCOUNT_H
16
17 #include <map>
18 #include <string>
19
20 class AccountEvent : public Event
21 {
22  public:
23         User* const user;
24         const std::string account;
25         AccountEvent(Module* me, User* u, const std::string& name)
26                 : Event(me, "account_login"), user(u), account(name)
27         {
28         }
29 };
30
31 typedef StringExtItem AccountExtItem;
32
33 inline AccountExtItem* GetAccountExtItem()
34 {
35         return static_cast<AccountExtItem*>(ServerInstance->Extensions.GetItem("accountname"));
36 }
37
38 #endif