Commit 76342512 authored by Habetdin's avatar Habetdin Committed by Armando Lüscher

Update GenericCommand.php

parent 64d0a09d
...@@ -48,7 +48,7 @@ class GenericCommand extends SystemCommand ...@@ -48,7 +48,7 @@ class GenericCommand extends SystemCommand
$user_id = $message->getFrom()->getId(); $user_id = $message->getFrom()->getId();
$command = $message->getCommand(); $command = $message->getCommand();
//If the user is and admin and the command is in the format "/whoisXYZ", call the /whois command //If the user is an admin and the command is in the format "/whoisXYZ", call the /whois command
if (stripos($command, 'whois') === 0 && $this->telegram->isAdmin($user_id)) { if (stripos($command, 'whois') === 0 && $this->telegram->isAdmin($user_id)) {
return $this->telegram->executeCommand('whois'); return $this->telegram->executeCommand('whois');
} }
......
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