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:
@@ -0,0 +1,6 @@
|
||||
#include <utils/string.hpp>
|
||||
|
||||
bool to_bool(const std::string& val)
|
||||
{
|
||||
return (val == "1" || val == "true");
|
||||
}
|
||||
@@ -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 */
|
||||
Reference in New Issue
Block a user