Changeset 2079
- Timestamp:
- 02/19/2008 02:06:24 AM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
modules/kobot/libraries/Kobot.php (modified) (2 diffs)
-
system/core/Kohana.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kobot/libraries/Kobot.php
r2068 r2079 324 324 list ($prefix, $str) = explode(' ', $raw, 2); 325 325 326 if ( ! empty($prefix) AND $prefix {0}=== ':')326 if ( ! empty($prefix) AND $prefix[0] === ':') 327 327 { 328 328 // A user-level command, like PRIVMSG or NOTICE … … 350 350 list ($data['target'], $data['message']) = explode(' :', $str, 2); 351 351 } 352 elseif ($str {0}=== ':')352 elseif ($str[0] === ':') 353 353 { 354 354 // :target, without a message -
trunk/system/core/Kohana.php
r2072 r2079 234 234 Router::$method = '_remap'; 235 235 } 236 elseif (isset($methods[Router::$method]) AND Router::$method {0}!== '_')236 elseif (isset($methods[Router::$method]) AND Router::$method[0] !== '_') 237 237 { 238 238 // Use the arguments normally
