Use the configured encoding value when decoding received messages

This commit is contained in:
Florent Le Coz committed 2016-01-04 13:47:26 +01:00
1 parent b0c3aa0be9
commit 79cdf170d2
5 files changed
+51 -17

No files matched your search

+6
View File
@@ -83,6 +83,12 @@ TEST_CASE("Database")
THEN("we get the channel option")
CHECK(r.encodingIn == "channelEncoding");
}
WHEN("we fetch that option, with no channel specified")
{
auto r = Database::get_irc_channel_options_with_server_default(owner, server, "");
THEN("we get the server option")
CHECK(r.encodingIn == "serverEncoding");
}
}
}