Fix #244 and use the correct string
This commit is contained in:
@@ -23,9 +23,9 @@ namespace Discord.Commands
|
|||||||
string name;
|
string name;
|
||||||
|
|
||||||
if (nextSpace == -1)
|
if (nextSpace == -1)
|
||||||
name = command.Text;
|
name = text;
|
||||||
else
|
else
|
||||||
name = command.Text.Substring(0, nextSpace);
|
name = text.Substring(0, nextSpace);
|
||||||
|
|
||||||
lock (this)
|
lock (this)
|
||||||
{
|
{
|
||||||
@@ -42,9 +42,9 @@ namespace Discord.Commands
|
|||||||
string name;
|
string name;
|
||||||
|
|
||||||
if (nextSpace == -1)
|
if (nextSpace == -1)
|
||||||
name = command.Text;
|
name = text;
|
||||||
else
|
else
|
||||||
name = command.Text.Substring(0, nextSpace);
|
name = text.Substring(0, nextSpace);
|
||||||
|
|
||||||
lock (this)
|
lock (this)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user