Browse Source

Fixed @color to accept a blank value. Actually tested it this time.

Keelan Lightfoot 8 years ago
parent
commit
c184adf58d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      execution_context.go

+ 1
- 1
execution_context.go View File

@@ -926,7 +926,7 @@ func (c *ExecutionContext) setCmd(input string) {
926 926
 
927 927
 func (c *ExecutionContext) colorCmd(input string) {
928 928
 
929
-	r, _ := regexp.Compile(`^@color\pZ+([^=]*[^=\pZ]{1})\pZ*=\pZ*(.*[^\pZ])\pZ*$`)
929
+	r, _ := regexp.Compile(`^@color\pZ+([^=]*[^=\pZ]{1})\pZ*=\pZ*([^\pZ]*)\pZ*$`)
930 930
 	params := r.FindStringSubmatch(input)
931 931
 	if params == nil {
932 932
 		return