Changeset 2157
- Timestamp:
- 12/03/2015 06:06:50 PM (9 years ago)
- Location:
- sites/trunk/common/includes/slack/props
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/props/lib.php
r2154 r2157 4 4 use Dotorg\Slack\Send; 5 5 6 require_once __DIR__ . '/config.php';7 8 6 function show_error( $user ) { 9 if ( ! in_array( $user, get_whitelist() ) ) {10 echo "You are not allowed to use /props.\n\n";11 printf( "If you are a team lead and need to be whitelisted, contact an admin in <#%s|%s> for assistance.", SLACKHELP_CHANNEL_ID, SLACKHELP_CHANNEL_NAME );12 return;13 }14 15 7 echo 'Please use `/props SLACK_USERNAME MESSAGE` to give props.'; 16 8 } … … 25 17 26 18 if ( empty( $data['text'] ) ) { 27 show_error( $sender );28 return;29 }30 31 if ( ! in_array( $sender, get_whitelist() ) ) {32 19 show_error( $sender ); 33 20 return;
Note: See TracChangeset
for help on using the changeset viewer.