Making WordPress.org

Changeset 1191


Ignore:
Timestamp:
01/26/2015 07:48:28 PM (10 years ago)
Author:
nacin
Message:

Slack: Replace @channel with /announce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/slack/announce/lib.php

    r1121 r1191  
    4040    $channels = get_whitelisted_channels_for_user( $user ) ;
    4141    if ( $channel === 'privategroup' ) {
    42         echo "Any private group members can use @channel in this group.";
    43         # return;
     42        echo "Any private group members can use /announce in this group.";
     43        return;
    4444    } elseif ( empty( $channels ) ) {
    45         echo "You are not allowed to use @channel.";
     45        echo "You are not allowed to use /announce.";
    4646    } elseif ( in_array( $channel, $channels ) ) {
    4747        $channels = array_filter( $channels, function( $c ) use ( $channel ) { return $c !== $channel; } );
    4848        if ( $channels ) {
    49             printf( "You are allowed to use @channel in #%s (also %s).", $channel, '#' . implode( ' #', $channels ) );
     49            printf( "You are allowed to use /announce in #%s (also %s).", $channel, '#' . implode( ' #', $channels ) );
    5050        } else {
    51             echo "You are allowed to use @channel in #$channel.";
     51            echo "You are allowed to use /announce in #$channel.";
    5252        }
    5353    } else {
    54         printf( "You are not allowed to use @channel in #%s, but you are in #%s.", $channel, implode( ' #', $channels ) );
     54        printf( "You are not allowed to use /announce in #%s, but you are in #%s.", $channel, implode( ' #', $channels ) );
    5555    }
    5656
Note: See TracChangeset for help on using the changeset viewer.