From bb0c672f8f962e91773c10d42e4f68b7404cd493 Mon Sep 17 00:00:00 2001 From: wrk Date: Tue, 30 May 2023 03:43:29 +0200 Subject: [PATCH] fixing invalid command --- src/events.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/events.rs b/src/events.rs index 512c175..73eb88e 100644 --- a/src/events.rs +++ b/src/events.rs @@ -127,6 +127,9 @@ impl Irc { } let mut context = self.context.write().await; + if !context.systems.contains_key(&sys_name) { + return; + } let response = context.run_system(prefix, &sys_name).await; if response.0.is_none() {