diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-09-21 04:27:23 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-09-21 04:27:23 +0200 |
commit | 890cfe90996ac4c3916c84d178049d9b3b23465b (patch) | |
tree | 2a5a4576f5c6f2ecf98e58875736c6d9be861861 /src/test.cpp | |
parent | 532228a3cefd92fe43ad0f52149b7f0f5ab5cb79 (diff) | |
download | biboumi-890cfe90996ac4c3916c84d178049d9b3b23465b.tar.gz biboumi-890cfe90996ac4c3916c84d178049d9b3b23465b.tar.bz2 biboumi-890cfe90996ac4c3916c84d178049d9b3b23465b.tar.xz biboumi-890cfe90996ac4c3916c84d178049d9b3b23465b.zip |
Provide Ports and TLS Ports IRC-server ad-hoc options
This let any user choose which ports to use when connecting to the IRC
server. This also lets the user choose whether or not to force TLS usage (by
setting no non-TLS port).
fix #2731
Diffstat (limited to 'src/test.cpp')
-rw-r--r-- | src/test.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test.cpp b/src/test.cpp index 79fcd0b..1a59041 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -423,12 +423,9 @@ int main() Config::set("db_name", "test.db"); Database::set_verbose(true); auto o = Database::get_irc_server_options("zouzou@example.com", "irc.example.com"); - o.requireTls = false; o.update(); auto a = Database::get_irc_server_options("zouzou@example.com", "irc.example.com"); - assert(a.requireTls == false); auto b = Database::get_irc_server_options("moumou@example.com", "irc.example.com"); - assert(b.requireTls == true); // b does not yet exist in the db, the object is created but not yet // inserted @@ -439,13 +436,6 @@ int main() assert(b.pass == ""); assert(b.pass.value() == ""); - - std::vector<litesql::FieldType> ftypes; - db::IrcServerOptions::getFieldTypes(ftypes); - for (const auto& type: ftypes) - { - std::cout << type.type() << std::endl; - } } #endif { |