Changeset 137
- Timestamp:
- 03/07/08 05:04:37 (9 months ago)
- Files:
-
- trunk/Phergie/Plugin/Abstract/Command.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Plugin/Abstract/Command.php
r135 r137 54 54 } 55 55 56 if (preg_match('/^(\S+)(?: \s+(.*))?$/', $message, $match)) {56 if (preg_match('/^(\S+)(?:[\s\0xa0]+(.*))?$/', $message, $match)) { 57 57 $command = strtolower($match[1]); 58 58 $params = isset ($match[2]) ? $match[2] : array(); … … 72 72 } 73 73 } else { 74 $params = preg_split('/ \s+/', $params, $this->methods[$command][0]);74 $params = preg_split('/[\s\0xa0]+/', $params, $this->methods[$command][0]); 75 75 if ($this->methods[$command][1] <= count($params)) { 76 76 call_user_func_array(array($this, $method), $params);