Changeset 55923 in spip-zone for _acotes_


Ignore:
Timestamp:
Dec 23, 2011, 10:27:26 AM (7 years ago)
Author:
ben.spip@…
Message:

EdgardII repond aux questions : @?

File:
1 edited

Legend:

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

    r55152 r55923  
    7272                    $this->doPrivmsg($source, $msg);
    7373                }
     74
     75        // @?
     76        $pattern = '/' . preg_quote($prefix) .
     77                           '^@\?([^?]+)/iAD';
     78                if (preg_match($pattern, $text, $m)) {
     79                        $m[1]=preg_replace("'\s+'", '+', $m[1]);
     80                        $msg = "Ok ok http://edgard.spip.org/questions/". $m[1] ;
     81                    $this->doPrivmsg($source, $msg);
     82                }
    7483    }
    7584}
Note: See TracChangeset for help on using the changeset viewer.