/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2012, 2015 Attila Molnar <attilamolnar@hush.com>
+ * Copyright (C) 2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2015 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
*/
bool IsTimed() const { return (expiretimer != NULL); }
+ /** Serialize this object
+ * @param human Whether to serialize for human consumption or not.
+ * @param show_chans True to include channel in the output, false to include the nick/uuid
+ * @param out Output will be appended to this string
+ */
+ void Serialize(bool human, bool show_chans, std::string& out);
+
friend class APIImpl;
private: