2012-04-19 20:58:29 +02:00
|
|
|
/*
|
|
|
|
* InspIRCd -- Internet Relay Chat Daemon
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
2022-04-28 18:49:16 +01:00
|
|
|
* Copyright (C) 2013-2014, 2016, 2018 Attila Molnar <attilamolnar@hush.com>
|
2024-06-07 10:37:56 +01:00
|
|
|
* Copyright (C) 2013, 2018, 2020, 2022 Sadie Powell <sadie@witchery.services>
|
2020-01-11 22:02:47 +00:00
|
|
|
* Copyright (C) 2012 Robby <robby@chatbelgie.be>
|
2024-06-07 10:37:56 +01:00
|
|
|
* Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
|
2012-04-19 20:58:29 +02:00
|
|
|
* Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
|
2022-12-30 11:31:28 +00:00
|
|
|
* Copyright (C) 2005 Craig Edwards <brain@inspircd.org>
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
2012-04-19 20:58:29 +02:00
|
|
|
* 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.
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
2012-04-19 20:58:29 +02:00
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
2007-07-16 17:30:04 +00:00
|
|
|
*/
|
|
|
|
|
2012-04-19 20:58:29 +02:00
|
|
|
|
2013-04-02 20:12:15 +01:00
|
|
|
#pragma once
|
2007-07-16 17:30:04 +00:00
|
|
|
|
2009-10-24 20:03:53 +00:00
|
|
|
class Channel;
|
2013-08-16 12:10:55 +02:00
|
|
|
class ConfigStatus;
|
2009-10-24 20:03:53 +00:00
|
|
|
class ConfigTag;
|
|
|
|
class Extensible;
|
|
|
|
class FakeUser;
|
|
|
|
class InspIRCd;
|
2016-08-08 14:24:40 +02:00
|
|
|
class IOHookProvider;
|
2009-10-24 20:03:53 +00:00
|
|
|
class LocalUser;
|
2022-10-29 18:05:15 +01:00
|
|
|
class ModResult;
|
2009-10-24 20:03:53 +00:00
|
|
|
class Module;
|
2022-11-27 07:32:42 +00:00
|
|
|
class OperAccount;
|
|
|
|
class OperType;
|
2009-10-24 20:03:53 +00:00
|
|
|
class RemoteUser;
|
2014-01-05 15:04:01 +01:00
|
|
|
class Server;
|
2009-10-24 20:03:53 +00:00
|
|
|
class User;
|
|
|
|
class XLine;
|
|
|
|
class XLineFactory;
|
2022-10-29 18:05:15 +01:00
|
|
|
class XLineManager;
|
2009-10-24 20:03:53 +00:00
|
|
|
|
2018-08-13 20:17:46 +01:00
|
|
|
namespace ClientProtocol
|
|
|
|
{
|
|
|
|
class Event;
|
|
|
|
class EventProvider;
|
|
|
|
class Message;
|
2020-01-03 20:48:07 +00:00
|
|
|
class MessageTagEvent;
|
2018-08-13 20:17:46 +01:00
|
|
|
class MessageTagProvider;
|
|
|
|
class Serializer;
|
|
|
|
|
|
|
|
typedef std::vector<Message*> MessageList;
|
|
|
|
typedef std::vector<std::string> ParamList;
|
|
|
|
typedef std::string SerializedMessage;
|
|
|
|
|
2022-11-30 21:33:29 +00:00
|
|
|
struct CoreExport MessageTagData final
|
2018-08-13 20:17:46 +01:00
|
|
|
{
|
|
|
|
MessageTagProvider* tagprov;
|
|
|
|
std::string value;
|
|
|
|
void* provdata;
|
|
|
|
|
2022-07-22 18:33:38 +01:00
|
|
|
MessageTagData(MessageTagProvider* prov, const std::string& val, void* data = nullptr);
|
2018-08-13 20:17:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/** Map of message tag values and providers keyed by their name.
|
|
|
|
* Sorted in descending order to ensure tag names beginning with symbols (such as '+') come later when iterating
|
|
|
|
* the container than tags with a normal name.
|
|
|
|
*/
|
2022-06-23 21:22:04 +01:00
|
|
|
typedef insp::flat_map<std::string, MessageTagData, std::greater<>> TagMap;
|
2018-08-13 20:17:46 +01:00
|
|
|
}
|
|
|
|
|
2009-10-24 20:03:53 +00:00
|
|
|
#include "hashcomp.h"
|
|
|
|
#include "base.h"
|
|
|
|
|
|
|
|
/** Generic user list, used for exceptions */
|
|
|
|
typedef std::set<User*> CUList;
|
|
|
|
|
2022-09-30 20:21:59 +01:00
|
|
|
/** A bitset of characters which are enabled/set. */
|
|
|
|
typedef std::bitset<UCHAR_MAX + 1> CharState;
|