smol bot
Diffstat (limited to 'src/bot/schematic.rs')
-rw-r--r--src/bot/schematic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bot/schematic.rs b/src/bot/schematic.rs
index a3cf30f..7906a84 100644
--- a/src/bot/schematic.rs
+++ b/src/bot/schematic.rs
@@ -96,8 +96,8 @@ pub fn to_png(s: &Schematic) -> Vec<u8> {
pub async fn from(m: (&str, &[Attachment])) -> Result<Option<Schematic>> {
match from_msg(m.0) {
- x @ Ok(_) => x,
- Err(_) => from_attachments(m.1).await,
+ x @ Ok(Some(_)) => x,
+ _ => from_attachments(m.1).await,
}
}