mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
Merge pull request #95 from Koolvin/arcpatch-D1717-1
Private Message User IRC Command
This commit is contained in:
commit
8b447e21d0
1 changed files with 5 additions and 0 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue