Changeset 151
- Timestamp:
- 03/09/08 18:33:21 (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
r141 r151 60 60 '(?:' . $this->getIni('nick') . '\s*:?\s+)?'; 61 61 62 if (preg_match('/^'.$exp.'(\S+)(?:[\s \0xa0]+(.*))?$/', $message, $match)) {62 if (preg_match('/^'.$exp.'(\S+)(?:[\s'.chr(240).']+(.*))?$/', $message, $match)) { 63 63 $command = strtolower($match[1]); 64 64 $params = isset ($match[2]) ? $match[2] : array(); … … 78 78 } 79 79 } else { 80 $params = preg_split('/[\s \0xa0]+/', $params, $this->methods[$command][0]);80 $params = preg_split('/[\s'.chr(240).']+/', $params, $this->methods[$command][0]); 81 81 if ($this->methods[$command][1] <= count($params)) { 82 82 call_user_func_array(array($this, $method), $params);