mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Add support for automatic response to SMS stop
This commit is contained in:
parent
6321899e02
commit
6e6c51a9ee
9 changed files with 98 additions and 12 deletions
|
@ -73,7 +73,8 @@ namespace controllers\internals;
|
|||
*/
|
||||
public function check_for_stop(string $str)
|
||||
{
|
||||
return 'stop' == trim(mb_strtolower($str));
|
||||
$str = trim(mb_strtolower($str));
|
||||
return 'stop' == $str || 'stop sms' == $str;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue