Changeset 738 for trunk/Modules/Chat/irc_bot.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Chat/irc_bot.php
r577 r738 13 13 var $File; 14 14 15 function __construct() 15 function __construct() 16 16 { 17 17 $this->Jokes = file($this->JokeFileName); … … 74 74 $Line = substr($Line, strlen($Commands[0])); 75 75 $Commands[1] = substr($Line, 0, strpos($Line, ':') + 1); 76 $Commands[2] = substr($Line, strlen($Commands[1])); 76 $Commands[2] = substr($Line, strlen($Commands[1])); 77 77 //print_r($Commands); 78 78 … … 89 89 } 90 90 91 91 92 92 explode(':', $Line); 93 93 foreach($Commands as $Index => $Item) … … 185 185 186 186 // hjoke - Posle nahodny vtip 187 if($Command == 'hjoke') 187 if($Command == 'hjoke') 188 188 { 189 189 $Joke = ($this->Jokes[rand(0, (sizeof($this->Jokes) - 1))]);
Note:
See TracChangeset
for help on using the changeset viewer.