Skip to content
Browse files

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

…o itself
  • Loading branch information...
1 parent 7a99a33 commit 5a45d48477b27b00f4c46b905fc9c48665c908e0 @cisso cisso committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 Phergie/Plugin/Ctcp.php
View
3 Phergie/Plugin/Ctcp.php
@@ -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.
Something went wrong with that request. Please try again.