Route the !dict fantasy command through the language-aware database too
All checks were successful
CI / check (push) Successful in 5m7s

This commit is contained in:
Jean Chevronnet 2026-07-20 02:43:22 +00:00
parent 3473d3afbd
commit c57683b5e4
No known key found for this signature in database
2 changed files with 13 additions and 7 deletions

View file

@ -196,7 +196,8 @@ impl Engine {
if self.service_uid("DictServ").is_some() {
let query = words.collect::<Vec<_>>().join(" ");
if !query.trim().is_empty() {
ctx.dict_lookup(botuid.as_str(), chan, l.database, l.label, query);
let (database, label) = echo_dictserv::database_for(l, ctx.lang());
ctx.dict_lookup(botuid.as_str(), chan, database, label, query);
}
}
return;