Assembla home | Assembla project page
 

Changeset 157

Show
Ignore:
Timestamp:
03/10/08 01:22:02 (9 months ago)
Author:
Slynderdale
Message:

Fixed some incompatibilities with ModuleList and made it slightly less annoying by setting the flood protection to 10.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/ChuckNorris.php

    r152 r157  
    6363    * @var int 
    6464    */ 
    65     protected $floodCheck = 3
     65    protected $floodCheck = 10
    6666 
    6767    /** 
     
    242242        // it was a bot request by checking for Fact: at the begiining and also do a floodpro check 
    243243        if (!preg_match('{^(?:' . $this->getIni('nick') . '\s*:?\s+)}i', $message, $m) && 
    244             preg_match('{(chuck\s*norris)}i', $message, $m) && 
     244            preg_match('{(chuck\s+norris)}i', $message, $m) && 
    245245            strtolower(substr($message, 0, 5)) != 'fact:' && 
    246246            ($this->floodCheck <= 0 || ($this->floodCache[$source] < (time() - $this->floodCheck)))) {