Check correct inbox

This commit is contained in:
kageru 2021-07-20 20:36:13 +02:00
parent f7f8ca39aa
commit 0fbefe2b30
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -98,7 +98,7 @@ async fn name(ctx: &Context, msg: &Message) -> CommandResult {
now.unix_timestamp()
);
if msg.author.id == INBOX_OWNER {
let msg_count = INBOX.count_messages("name");
let msg_count = INBOX.count_messages(name);
if msg_count > 0 {
send_or_log!(
msg.reply(&ctx, format!("{} neue Nachrichten für {}", msg_count, name))