Changeset 63547 in spip-zone for _acotes_


Ignore:
Timestamp:
Jul 18, 2012, 10:19:55 PM (7 years ago)
Author:
ben.spip@…
Message:

changement de delimeter ~ au lieu de / pour le pregmatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _acotes_/irc/phergie/Phergie/Plugin/Edgard.php

    r63545 r63547  
    128128        if (!$trouve) {
    129129            foreach ($this->datas as $key => $value) {
    130                 $pattern = '/' . preg_quote($prefix) . $key . '/iAD';
     130                $pattern = '~' . preg_quote($prefix) . $key . '~iAD';
    131131                if (preg_match($pattern, $text, $m)) {
    132132                    $this->doPrivmsg($source, $value);
Note: See TracChangeset for help on using the changeset viewer.