Changeset 172
- Timestamp:
- 03/13/08 03:05:10 (8 months ago)
- Files:
-
- trunk/Phergie/Bot.php (modified) (3 diffs)
- trunk/Phergie/Driver/Abstract.php (modified) (1 diff)
- trunk/Phergie/Driver/Streams.php (modified) (1 diff)
- trunk/Phergie/Plugin/Abstract/Base.php (modified) (4 diffs)
- trunk/Phergie/Plugin/Eval.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Bot.php
r125 r172 61 61 */ 62 62 if (!ini_get('register_argc_argv')) { 63 echo 'The register_argc_argv setting in php.ini is disabled, defaulting to ' . PHERGIE_INI . "\n";63 echo 'The register_argc_argv setting in php.ini is disabled, defaulting to ' . PHERGIE_INI . PHP_EOL; 64 64 $ini = PHERGIE_INI; 65 65 } else if ($argc == 1) { 66 echo 'No configuration file specified, defaulting to ' . PHERGIE_INI . "\n";66 echo 'No configuration file specified, defaulting to ' . PHERGIE_INI . PHP_EOL; 67 67 $ini = PHERGIE_INI; 68 68 } else { 69 echo 'Loaded specified configuration file ' . $argv[1] . "\n";69 echo 'Loaded specified configuration file ' . $argv[1] . PHP_EOL; 70 70 $ini = $argv[1]; 71 71 } … … 85 85 86 86 if (count($config) == 0) { 87 echo 'Configuration file inaccessible or empty: ' . $ini . "\n";87 echo 'Configuration file inaccessible or empty: ' . $ini . PHP_EOL; 88 88 return; 89 89 } … … 91 91 foreach ($required as $setting) { 92 92 if (!isset($config[$setting]) || empty($config[$setting])) { 93 echo 'Required configuration setting missing: ' . $setting . "\n";93 echo 'Required configuration setting missing: ' . $setting . PHP_EOL; 94 94 return; 95 95 } trunk/Phergie/Driver/Abstract.php
r162 r172 120 120 { 121 121 if ($this->getIni('debug')) { 122 $message = date('H:i:s') . ' ' . $message . "\n";122 $message = date('H:i:s') . ' ' . $message . PHP_EOL; 123 123 echo $message; 124 124 if ($log = $this->getIni('log')) { trunk/Phergie/Driver/Streams.php
r167 r172 257 257 } elseif ($cmd == 'ping' || $cmd == 'version' || $cmd == 'time') { 258 258 // Return sender as source and the rest of the args as its first argument 259 $cmd = $cmd.' reply';259 $cmd = $cmd.'Reply'; 260 260 $args = array($nick, trim($args)); 261 261 } else { 262 262 // Return sender as source and the ctcp as its first argument 263 $cmd = 'ctcp reply';263 $cmd = 'ctcpReply'; 264 264 $args = array($nick, $ctcp); 265 265 } trunk/Phergie/Plugin/Abstract/Base.php
r166 r172 546 546 * @return void 547 547 */ 548 public function onPing reply() { }548 public function onPingReply() { } 549 549 550 550 /** … … 553 553 * @return void 554 554 */ 555 public function onTime reply() { }555 public function onTimeReply() { } 556 556 557 557 /** … … 560 560 * @return void 561 561 */ 562 public function onVersion reply() { }562 public function onVersionReply() { } 563 563 564 564 /** … … 567 567 * @return void 568 568 */ 569 public function onCtcp reply() { }569 public function onCtcpReply() { } 570 570 571 571 /** trunk/Phergie/Plugin/Eval.php
r149 r172 36 36 // Dump the content of the output buffering to the console 37 37 if (!empty($contents)) { 38 $this->debug( "OUTPUT:\n".trim($contents));38 $this->debug('OUTPUT:' . PHP_EOL . trim($contents)); 39 39 unset($contents); 40 40 } … … 64 64 if (!empty($output)) { 65 65 if ($console) { 66 $this->debug( "OUTPUT:\n".implode("\n", $output));66 $this->debug('OUTPUT:' . PHP_EOL . implode("\n", $output)); 67 67 } 68 68 unset($output);