summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-21 04:27:23 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-21 04:27:23 +0200
commit890cfe90996ac4c3916c84d178049d9b3b23465b (patch)
tree2a5a4576f5c6f2ecf98e58875736c6d9be861861 /src/test.cpp
parent532228a3cefd92fe43ad0f52149b7f0f5ab5cb79 (diff)
downloadbiboumi-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.cpp10
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
{