Issue #3 - Fixed issue with tabing

This commit is contained in:
Derek McDaniel 2017-02-01 22:54:28 -05:00
parent dd5b8e863e
commit 882c35b0ee

View File

@ -28,7 +28,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
return true; return true;
} }
public function run() public function run()
{ {
$dispatcher = EventDispatcher::getInstance(); $dispatcher = EventDispatcher::getInstance();
$dispatcher->attachListener(Events::THREAD_CREATE, $this, 'sendSlackNotification'); $dispatcher->attachListener(Events::THREAD_CREATE, $this, 'sendSlackNotification');
@ -37,9 +37,9 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
public function sendSlackNotification(&$args) public function sendSlackNotification(&$args)
{ {
$settings = [ $settings = [
'username' => $this->config['username'], 'username' => $this->config['username'],
'channel' => '#' . $this->config['channel'], 'channel' => '#' . $this->config['channel'],
'link_names' => true 'link_names' => true
]; ];
$client = new Client($this->config['slack_url'], $settings); $client = new Client($this->config['slack_url'], $settings);