/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com>
+ * Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2015-2016, 2018 Attila Molnar <attilamolnar@hush.com>
*
* 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
{
public:
ExtItem(Module* mod);
- std::string serialize(SerializeFormat format, const Extensible* container, void* item) const CXX11_OVERRIDE;
- void unserialize(SerializeFormat format, Extensible* container, const std::string& value) CXX11_OVERRIDE;
+ void FromInternal(Extensible* container, const std::string& value) CXX11_OVERRIDE;
+ std::string ToHuman(const Extensible* container, void* item) const CXX11_OVERRIDE;
+ std::string ToInternal(const Extensible* container, void* item) const CXX11_OVERRIDE;
};
class Capability;
{
}
+ /** Retrieves the underlying cap. */
+ operator const Cap::Capability*() const
+ {
+ return ref ? *ref : NULL;
+ }
+
/** Check whether a user has the referenced capability turned on.
* @param user User to check
* @return True if the user is using the referenced capability, false otherwise
{
public:
MessageBase(const std::string& subcmd)
- : ClientProtocol::Message("CAP", ServerInstance->Config->ServerName)
+ : ClientProtocol::Message("CAP", ServerInstance->Config->GetServerName())
{
PushParamPlaceholder();
PushParam(subcmd);