From 6162d2e6785c773827e94c281992e532e3abf53d Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sat, 24 Oct 2020 14:12:02 +0100 Subject: [PATCH] corrects a issue with group notices --- Core/Commands/Group/GroupNotice.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/Commands/Group/GroupNotice.cs b/Core/Commands/Group/GroupNotice.cs index 9fafeb0..2661858 100644 --- a/Core/Commands/Group/GroupNotice.cs +++ b/Core/Commands/Group/GroupNotice.cs @@ -17,12 +17,12 @@ namespace BSB.Commands.Group if (bot.MyGroups.ContainsKey(targetgroup) == true) { string Noticetitle = "GroupNotice@"+ helpers.UnixTimeNow().ToString()+""; - string Noticemessage = ""; - if (args.Length == 3) + string Noticemessage = args[1]; + if (args.Length >= 3) { Noticetitle = args[1]; + Noticemessage = args[2]; } - Noticemessage = args[^1]; GroupNotice NewNotice = new GroupNotice(); NewNotice.Subject = Noticetitle; NewNotice.Message = Noticemessage;