Browse Source

Allows version to be used without a nick specified

master
Teknikode 7 years ago
parent
commit
09bbb95b69
  1. 2
      Modules/Version/Version.cs

2
Modules/Version/Version.cs

@ -28,7 +28,7 @@ namespace Combot.Modules.Plugins @@ -28,7 +28,7 @@ namespace Combot.Modules.Plugins
if (foundCommand.Name == "Version Check")
{
string nick = command.Arguments["Nickname"].ToString();
string nick = (command.Arguments.ContainsKey("Nickname")) ? command.Arguments["Nickname"].ToString() : command.Nick.Nickname;
List<string> nickList = nick.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
for (int i = 0; i < nickList.Count; i++)
{

Loading…
Cancel
Save