#endif
// Required system headers.
+#include <csignal>
#include <ctime>
#include <cstdarg>
#include <algorithm>
*/
inline std::string ConvToStr(char in)
{
- return std::string(in,1);
+ return std::string(1, in);
}
/** Template function to convert any input type to std::string
/** Set to the current signal recieved
*/
- int s_signal;
+ static sig_atomic_t s_signal;
/** Protocol interface, overridden by server protocol modules
*/
*/
bool IsValidMask(const std::string &mask);
+ /** Strips all color codes from the given string
+ * @param sentence The string to strip from
+ */
+ static void StripColor(std::string &sentence);
+
+ /** Parses color codes from string values to actual color codes
+ * @param input The data to process
+ */
+ static void ProcessColors(file_cache& input);
+
/** Rehash the local server
*/
void RehashServer();