Skip to content

Commit a150982

Browse files
author
Najsr
committed
Fix for issue #28
Temporary fix (Needs to be located and properly fixed in TS3 PHP Framework)
1 parent d4c85d8 commit a150982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/BadChannelName.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
use App\Plugin;
1313
use TeamSpeak3\TeamSpeak3;
1414
use TeamSpeak3\Ts3Exception;
15+
use TeamSpeak3\Helper\StringHelper;
1516

1617
class BadChannelName extends Plugin implements PluginContract
1718
{
18-
1919
public function isTriggered()
2020
{
2121

2222
foreach($this->CONFIG['blacklist'] as $regex) {
23-
if(!$this->info['channel_name']->contains($regex, true)) {
23+
if(!StringHelper::factory($this->info['channel_name'])->contains($regex, true)) {
2424
continue;
2525
}
2626

0 commit comments

Comments
 (0)