From de57778c8524085c58db7333b250e47b45cc5895 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 18 Jul 2020 19:27:23 +0100 Subject: [PATCH] adjustments to the groupmembersevent awaiter --- Core/bottypes/AwaitReplyEventBot.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Core/bottypes/AwaitReplyEventBot.cs b/Core/bottypes/AwaitReplyEventBot.cs index 037d563..ae68957 100644 --- a/Core/bottypes/AwaitReplyEventBot.cs +++ b/Core/bottypes/AwaitReplyEventBot.cs @@ -31,17 +31,14 @@ namespace BSB.bottypes { // eventid // KeyValuePair - // Args: Group, Message - if (await_reply.Value.Value.Length == 2) + // Args: Group, args, args + if (UUID.TryParse(await_reply.Value.Value[0], out UUID test_group) == true) { - if (UUID.TryParse(await_reply.Value.Value[0], out UUID test_group) == true) + if (test_group == e.GroupID) { - if (test_group == e.GroupID) - { - // oh shit its for me - PurgeAwaiters.Add(await_reply.Key); - await_reply.Value.Key.Callback(await_reply.Value.Value, e); - } + // oh shit its for me + PurgeAwaiters.Add(await_reply.Key); + await_reply.Value.Key.Callback(await_reply.Value.Value, e); } } }