Introduce the configure ad-hoc command on irc servers

Provides two options for now, and they have no effect yet
This commit is contained in:
Florent Le Coz
2015-09-18 22:09:26 +02:00
parent f1de6d0320
commit 1691cf8f64
6 changed files with 129 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#include <utils/string.hpp>
bool to_bool(const std::string& val)
{
return (val == "1" || val == "true");
}
+8
View File
@@ -0,0 +1,8 @@
#ifndef STRING_UTILS_HPP_INCLUDED
#define STRING_UTILS_HPP_INCLUDED
#include <string>
bool to_bool(const std::string& val);
#endif /* STRING_UTILS_HPP_INCLUDED */