Commit 88555856 authored by Armando Lüscher's avatar Armando Lüscher

Remove unused $command_is_provided variable.

parent 291b90f7
......@@ -60,13 +60,6 @@ class Conversation
*/
protected $command;
/**
* Command has been provided
*
* @var string
*/
protected $command_is_provided;
/**
* Conversation contructor to initialize a new conversation
*
......@@ -80,10 +73,8 @@ class Conversation
$this->chat_id = $chat_id;
$this->command = $command;
$this->command_is_provided = ($command !== null);
//Try to load an existing conversation if possible
if (!$this->load() && $this->command_is_provided) {
if (!$this->load() && $command !== null) {
//A new conversation start
$this->start();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment