Show
Ignore:
Timestamp:
02/25/08 06:55:08 (5 years ago)
Author:
Seldaek
Message:

* Acronym : allowed <Nick>: ACRO?
* Daddy : added "I am your daddy, bitch!" 10% chance response (if curses is on)
* Logging : fixed "heard foo bar" triggering false positive heard answers, same for seen
* Url : caches 5 URLs now to avoid cross-bot flood
* phergie.ini : added global curses switch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Phergie/Plugin/Daddy.php

    r68 r72  
    2323        $text = $this->event->getArgument(1); 
    2424        if (preg_match('/' . $bot . '\s*:?\s+?who\'?s your daddy\??/iAD', $text)) { 
    25             $this->doPrivmsg($this->event->getSource(), 'You\'re my daddy, ' . $this->event->getNick() . '!'); 
     25                if($this->getIni('curses') === 'true' && rand(0,10) === 10) { 
     26                    $this->doPrivmsg($this->event->getSource(), $this->event->getNick() . ': I am your daddy, bitch!'); 
     27                } else { 
     28                    $this->doPrivmsg($this->event->getSource(), 'You\'re my daddy, ' . $this->event->getNick() . '!'); 
     29                } 
    2630        } 
    2731    }