X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Faccount.h;h=ba671ba0b29888c031b6d88a67a73051347009cc;hb=7b5703b9a22e176ef6a47b405f2b0d5ce122df0a;hp=9182d7ca6c3b254ea66a1a5f739ede8a8d241b56;hpb=7e843c22e16c81054bad18073d24fe1a07026431;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/account.h b/src/modules/account.h index 9182d7ca6..ba671ba0b 100644 --- a/src/modules/account.h +++ b/src/modules/account.h @@ -1,18 +1,24 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ +/* + * InspIRCd -- Internet Relay Chat Daemon * - * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://wiki.inspircd.org/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 @@ -28,4 +34,11 @@ class AccountEvent : public Event } }; +typedef StringExtItem AccountExtItem; + +inline AccountExtItem* GetAccountExtItem() +{ + return static_cast(ServerInstance->Extensions.GetItem("accountname")); +} + #endif