Use the configured encoding value when decoding received messages

This commit is contained in:
Florent Le Coz
2016-01-04 13:47:26 +01:00
parent b0c3aa0be9
commit 79cdf170d2
5 changed files with 51 additions and 17 deletions
+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");
}
}
}