Permalink
Browse files

fixed Ctcp plugin causing infinite loop when bot sends ctcp version t…

…o itself
  • Loading branch information...
mootari committed May 31, 2012
1 parent 7a99a33 commit 5a45d48477b27b00f4c46b905fc9c48665c908e0
Showing with 3 additions and 0 deletions.
  1. +3 −0 Phergie/Plugin/Ctcp.php
View
@@ -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);

0 comments on commit 5a45d48

Please sign in to comment.