Use the configured encoding value when decoding received messages
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user