Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Apr 2, 2014
1 parent 7221ead commit fe06859
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Countdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ public function reload($flags)
)
);
$this->connection->addEventHandler($this->rawHandler);

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

if ($flags & self::RELOAD_MEMBERS) {
Expand Down Expand Up @@ -141,10 +138,9 @@ public function getHelp(

$fmt = $this->getFormatter($chan);
$trigger = $this->parseString('trigger', 'countdown');
$moduleName = strtolower(get_class());
$nbArgs = count($words);

if ($nbArgs == 1 && $words[0] == $moduleName) {
if ($nbArgs == 1 && $words[0] === get_called_class()) {
$msg = $fmt->_(
'Provides the <b><var name="trigger"/></b> command which '.
'starts a new Countdown game where contestants must propose '.
Expand Down

0 comments on commit fe06859

Please sign in to comment.