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
 
926
 
927
 func (c *ExecutionContext) colorCmd(input string) {
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
 	params := r.FindStringSubmatch(input)
930
 	params := r.FindStringSubmatch(input)
931
 	if params == nil {
931
 	if params == nil {
932
 		return
932
 		return