1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Merge pull request #95 from Koolvin/arcpatch-D1717-1

Private Message User IRC Command
This commit is contained in:
Evan Priestley 2012-02-29 09:09:37 -08:00
commit 8b447e21d0

View file

@ -49,6 +49,7 @@ class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
'(D|T|P|V|F)(\d+)'. '(D|T|P|V|F)(\d+)'.
'(?:\b|$)'. '(?:\b|$)'.
'@'; '@';
$pattern_override = '/(^[^\s]+)[,:] [DTPVF]\d+/';
$revision_ids = array(); $revision_ids = array();
$task_ids = array(); $task_ids = array();
@ -56,8 +57,12 @@ class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
$commit_names = array(); $commit_names = array();
$vote_ids = array(); $vote_ids = array();
$file_ids = array(); $file_ids = array();
$matches_override = array();
if (preg_match_all($pattern, $message, $matches, PREG_SET_ORDER)) { if (preg_match_all($pattern, $message, $matches, PREG_SET_ORDER)) {
if (preg_match($pattern_override, $message, $matches_override)) {
$reply_to = $matches_override[1];
}
foreach ($matches as $match) { foreach ($matches as $match) {
switch ($match[1]) { switch ($match[1]) {
case 'D': case 'D':