From 14cfdeca929c9f8f52f0fd428b30ebf7286dce9c Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 15 Aug 2012 13:16:02 -0700 Subject: [PATCH] Fix lint error --- src/infrastructure/daemon/irc/handler/PhabricatorIRCHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/daemon/irc/handler/PhabricatorIRCHandler.php b/src/infrastructure/daemon/irc/handler/PhabricatorIRCHandler.php index 40622be1cc..6a8fe55e4a 100644 --- a/src/infrastructure/daemon/irc/handler/PhabricatorIRCHandler.php +++ b/src/infrastructure/daemon/irc/handler/PhabricatorIRCHandler.php @@ -50,7 +50,7 @@ abstract class PhabricatorIRCHandler { } final protected function isChannelName($name) { - return (strpos($name, '#') === 0); + return (strncmp($name, '#', 1) === 0); } abstract public function receiveMessage(PhabricatorIRCMessage $message);