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/Acronym.php

    r71 r72  
    9999        $message = $this->event->getArgument(1); 
    100100 
    101         if (!preg_match('/((?:[A-Z]\.?){2,})\?/AD', $message, $acronym)) { 
     101                // Matches an optional "Nick: " followed by an acronym formatted as A.B.C. or ABC 
     102        if (!preg_match('/^(?:[A-Za-z0-9\[\]`|{}_-]+: )?((?:[A-Z]\.?){2,})\?$/', $message, $acronym)) { 
    102103            return; 
    103104        }