Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
76342512
Commit
76342512
authored
Apr 22, 2017
by
Habetdin
Committed by
Armando Lüscher
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update GenericCommand.php
parent
64d0a09d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GenericCommand.php
examples/Commands/GenericCommand.php
+1
-1
No files found.
examples/Commands/GenericCommand.php
View file @
76342512
...
@@ -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 an
d
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'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment