1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Added novelty Where in the world is Symbol? match to IRCbot.

Summary: Added match to the novel statement: Where in the world is derp?

Test Plan: Say something like "Where in the world is CarmenSandiego?"

Reviewers: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D3318
This commit is contained in:
KorvinSzanto 2012-08-16 14:28:21 -07:00
parent 5342bb1073
commit 528589edc6

View file

@ -229,7 +229,7 @@ final class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
$text = $message->getMessageText();
$matches = null;
if (!preg_match('/where is (\S+?)\?/i', $text, $matches)) {
if (!preg_match('/where(?: in the world) is (\S+?)\?/i', $text, $matches)) {
return;
}