Changeset 5494 for sites/trunk/common/includes/slack/announce/lib.php
- Timestamp:
- 05/16/2017 11:30:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/slack/announce/lib.php
r1789 r5494 74 74 75 75 $text = sprintf( "*@committers:* %s\n_(cc: %s)_", $data['text'], '@' . implode( ', @', $committers ) ); 76 } elseif ( $data['command'] === '/deputies' ) { 77 // This is not all deputies; it's only the ones who want to receive `/deputies` pings 78 $pingable_deputies = array( 79 '00sleepy', '_dorsvenabili', 'adityakane', 'andreamiddleton', 'bph', 'brandondove', 'camikaos', 80 'chanthaboune', 'courtneypk', 'drebbits', 'francina', 'gounder', 'heysherie', 'hlashbrooke', 81 'karenalma', 'kcristiano', 'kdrewien', 'kenshino', 'mayukojpn', 'mikelking', 'miss_jwo', 82 'remediosgraphic', 'savione', 'vc27', 'yaycheryl', 83 ); 84 $pingable_deputies = array( 'coreymckrill', 'iandunn' ); // todo remove after testing 85 86 if ( ! in_array( $user, $pingable_deputies, true ) ) { 87 return; 88 } 89 90 $text = sprintf( "*/deputies:* %s\n_(CC: %s)_", $data['text'], '@' . implode( ', @', $pingable_deputies ) ); 76 91 } else { 77 92 if ( ! is_user_whitelisted( $user, $channel ) ) {
Note: See TracChangeset
for help on using the changeset viewer.