Assembla home | Assembla project page
 

Changeset 176

Show
Ignore:
Timestamp:
03/18/08 00:28:09 (8 months ago)
Author:
tobias382
Message:

Escaped the bot's nick in the regex used in the Daddy plugin (thanks scoates)

Files:

Legend:

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

    r174 r176  
    2222        $bot = $this->getIni('nick'); 
    2323        $text = $this->event->getArgument(1); 
    24         if (preg_match('/' . $bot . '\s*:?\s+?who\'?s y(?:our|a) ([^?]+)\??/iAD', $text, $m)) { 
     24        if (preg_match('/' . preg_quote($bot) . '\s*:?\s+?who\'?s y(?:our|a) ([^?]+)\??/iAD', $text, $m)) { 
    2525                if($this->getIni('curses') && rand(0,5) === 5) { 
    2626                    $this->doPrivmsg($this->event->getSource(), $this->event->getNick() . ': I am your ' . $m[1] . ', bitch!');