re-enable smsstops

This commit is contained in:
osaajani 2021-07-13 02:13:40 +02:00
parent 8f7868cae7
commit 8492da652a
3 changed files with 38 additions and 0 deletions

View file

@ -73,4 +73,15 @@ namespace controllers\internals;
return $this->model;
}
/**
* Parse a string to check if its a SMS stop
*
* @param string $str : The string to check
* @return bool : true if sms stop, false else
*/
public function check_for_stop (string $str)
{
return trim(mb_strtolower($str)) == 'STOP';
}
}