corrects a issue with group notices

This commit is contained in:
Madpeter 2020-10-24 14:12:02 +01:00
parent 55a2e881ef
commit 6162d2e678

View file

@ -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;