/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2013 Peter Powell <petpow@saberuk.com>
+ * Copyright (C) 2017 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2014, 2016 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
{
private:
/** The generated lines which are sent to clients. */
- std::vector<std::string> cachedlines;
+ std::vector<Numeric::Numeric> cachedlines;
+
+ /** Escapes an ISUPPORT token value and appends it to the buffer.
+ * @param buffer The buffer to append to.
+ * @param value An ISUPPORT token value.
+ */
+ void AppendValue(std::string& buffer, const std::string& value);
public:
/** (Re)build the ISUPPORT vector.
void Build();
/** Returns the cached std::vector of ISUPPORT lines.
- * @return A list of strings prepared for sending to users
+ * @return A list of Numeric::Numeric objects prepared for sending to users
*/
- const std::vector<std::string>& GetLines() const { return cachedlines; }
+ const std::vector<Numeric::Numeric>& GetLines() const { return cachedlines; }
/** Send the 005 numerics (ISUPPORT) to a user.
* @param user The user to send the ISUPPORT numerics to