X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Faccount.h;h=ba671ba0b29888c031b6d88a67a73051347009cc;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=ce049ecd0ec9489025a3086f1f94b4d85cc73f4b;hpb=43847ec9c7e1a195163eb4c529f1c92fd1ace0a4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/account.h b/src/modules/account.h index ce049ecd0..ba671ba0b 100644 --- a/src/modules/account.h +++ b/src/modules/account.h @@ -1,27 +1,44 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * Copyright (C) 2008 Craig Edwards * - * This program is free but copyrighted software; see - * the file COPYING for details. + * This file is part of InspIRCd. InspIRCd is free software: you can + * redistribute it and/or modify it under the terms of the GNU General Public + * License as published by the Free Software Foundation, version 2. * - * --------------------------------------------------- + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ -#ifndef __ACCOUNT_H__ -#define __ACCOUNT_H__ + +#ifndef ACCOUNT_H +#define ACCOUNT_H #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 AccountExtItem* GetAccountExtItem() +{ + return static_cast(ServerInstance->Extensions.GetItem("accountname")); +} + #endif