Skip to content

Commit

Permalink
Merge pull request phergie#229 from cisso/fix-ctcp-infinite-loop
Browse files Browse the repository at this point in the history
fixed Ctcp plugin causing infinite loop when bot sends ctcp version to itself
  • Loading branch information
elazar committed Jul 1, 2012
2 parents 6bb574c + 5a45d48 commit 6cb5ee6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Phergie/Plugin/Ctcp.php
Expand Up @@ -51,6 +51,9 @@ public function onTime()
*/
public function onVersion()
{
if ($this->getEvent()->getArguments()) {
return;
}
$source = $this->getEvent()->getSource();
$msg = 'Phergie ' . Phergie_Bot::VERSION . ' (http://phergie.org)';
$this->doVersion($source, $msg);
Expand Down

0 comments on commit 6cb5ee6

Please sign in to comment.