Ignore:
Timestamp:
Mar 17, 2016, 6:16:40 PM (9 years ago)
Author:
alloc
Message:

v96

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/monitor-log.sh

    r258 r259  
    4242        logPlayerConnect $INSTANCE "$entityId" "$name" "$steamId" "$ip"
    4343
    44         for H in $(getHooksFor playerConnect); do
     44        for H in $(getHooksFor playerConnect $INSTANCE); do
    4545                $H $INSTANCE "$entityId" "$name" "$steamId" "$ip"
    4646        done
     
    5353        logPlayerDisconnect $INSTANCE "$entityId"
    5454
    55         for H in $(getHooksFor playerDisconnect); do
     55        for H in $(getHooksFor playerDisconnect $INSTANCE); do
    5656                $H $INSTANCE "$playerId" "$entityId" "$NICKNAME" "$STEAMID"
    5757        done
     
    6161        echo "$(timestamp): $1" >> $CHATLOG
    6262       
    63         for H in $(getHooksFor chat); do
     63        for H in $(getHooksFor chat $INSTANCE); do
    6464                $H $INSTANCE "$1"
    6565        done
     
    7272        echo "$(timestamp): Player \"$name\" executed \"$cmd\"" >> $COMMANDLOG
    7373
    74         for H in $(getHooksFor remoteCommand); do
     74        for H in $(getHooksFor remoteCommand $INSTANCE); do
    7575                $H $INSTANCE "$cmd" "$name"
    7676        done
     
    8383        echo "$(timestamp): Telnet from \"$ip\" executed \"$cmd\"" >> $COMMANDLOG
    8484
    85         for H in $(getHooksFor telnetCommand); do
     85        for H in $(getHooksFor telnetCommand $INSTANCE); do
    8686                $H $INSTANCE "$cmd" "$ip"
    8787        done
Note: See TracChangeset for help on using the changeset viewer.