Browse Source

Merge pull request #246 from FiniteReality/dev

Fix command aliases (#244)
tags/1.0-rc
RogueException GitHub 8 years ago
parent
commit
9c3b6b37ab
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/Discord.Net.Commands/Map/CommandMap.cs

+ 4
- 4
src/Discord.Net.Commands/Map/CommandMap.cs View File

@@ -23,9 +23,9 @@ namespace Discord.Commands
string name;

if (nextSpace == -1)
name = command.Text;
name = text;
else
name = command.Text.Substring(0, nextSpace);
name = text.Substring(0, nextSpace);

lock (this)
{
@@ -42,9 +42,9 @@ namespace Discord.Commands
string name;

if (nextSpace == -1)
name = command.Text;
name = text;
else
name = command.Text.Substring(0, nextSpace);
name = text.Substring(0, nextSpace);

lock (this)
{


Loading…
Cancel
Save