#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
*/
* @return True i the mask is valid
*/
bool IsValidMask(const std::string &mask);
-
+
/** Strips all color codes from the given string
- * @para sentence The string to strip from
+ * @param sentence The string to strip from
*/
static void StripColor(std::string &sentence);