Skip to content

Commit

Permalink
Fix typo & add missing interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Apr 2, 2014
1 parent 82ffa73 commit abe80a9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Roulette.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* A module that provides an implementation
* of a Russian Roulette game.
*/
class Roulette extends \Erebot\Module\Base
class Roulette extends \Erebot\Module\Base implements \Erebot\Interfaces\HelpEnabled
{
/// The actual Russian Roulette gun.
protected $roulette = null;
Expand Down Expand Up @@ -77,7 +77,7 @@ public function reload($flags)
}

$this->handler = new \Erebot\EventHandler(
Erebot\CallableWrapper::wrap(array($this, 'handleRoulette')),
\Erebot\CallableWrapper::wrap(array($this, 'handleRoulette')),
new \Erebot\Event\Match\All(
new \Erebot\Event\Match\Type(
'\\Erebot\\Interfaces\\Event\\ChanText'
Expand All @@ -86,9 +86,6 @@ public function reload($flags)
)
);
$this->connection->addEventHandler($this->handler);

$cls = $this->getFactory('!Callable');
$this->registerHelpMethod(new $cls(array($this, 'getHelp')));
}
}

Expand Down

0 comments on commit abe80a9

Please sign in to comment.