Changeset 63 for scripts


Ignore:
Timestamp:
Jul 6, 2014, 11:48:08 PM (10 years ago)
Author:
alloc
Message:

v22: Fixed playername getting cut off

Location:
scripts/usr/local/lib/7dtd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r62 r63  
    1 Version: 21
    2 Release: 2014-07-05
     1Version: 22
     2Release: 2014-07-06
  • scripts/usr/local/lib/7dtd/monitor-log.sh

    r62 r63  
    2727        fi
    2828
    29         logPlayerConnect $INSTANCE $2 $steamid $3
     29        logPlayerConnect $INSTANCE "$2" "$steamid" "$3"
    3030
    3131        for H in $(getHooksFor playerConnect); do
    32                 $H $INSTANCE $1 $2 $3 $steamid
     32                $H $INSTANCE "$1" "$2" "$3" "$steamid"
    3333        done
    3434}
    3535
    3636handleDisconnect() {
    37         logPlayerDisconnect $INSTANCE $2
     37        logPlayerDisconnect $INSTANCE "$2"
    3838
    3939        for H in $(getHooksFor playerDisconnect); do
    40                 $H $INSTANCE $1 $2 $NICKNAME $STEAMID
     40                $H $INSTANCE "$1" "$2" "$NICKNAME" "$STEAMID"
    4141        done
    4242}
     
    4646       
    4747        for H in $(getHooksFor chat); do
    48                 $H $INSTANCE $1
     48                $H $INSTANCE "$1"
    4949        done
    5050}
  • scripts/usr/local/lib/7dtd/playerlog.sh

    r23 r63  
    3535        PLAYERLOG=$(getInstancePath $1)/players.log
    3636        PLAYERLIST=$(getInstancePath $1)/players.xml
    37         ENTITYID=$2
    38         STEAMID=$3
    39         NICKNAME=$4
     37        ENTITYID="$2"
     38        STEAMID="$3"
     39        NICKNAME="$4"
    4040
    4141        echo "$(timestamp) +++ $ENTITYID $NICKNAME $STEAMID" >> $PLAYERLOG
     
    7575        PLAYERLOG=$(getInstancePath $1)/players.log
    7676        PLAYERLIST=$(getInstancePath $1)/players.xml
    77         ENTITYID=$2
     77        ENTITYID="$2"
    7878
    7979        createPlayerList "$1"
Note: See TracChangeset for help on using the changeset viewer.