File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -608,8 +608,8 @@ var chatSetAttr = chatSetAttr || (function () {
608
608
setting = parseAttributes ( _ . chain ( opts ) . omit ( optsArray ) . keys ( ) . value ( ) ,
609
609
opts . replace , fillInAttrs ) ,
610
610
deleteMode = ( mode [ 1 ] === 'del' ) ;
611
- opts . mod = ( mode [ 1 ] === 'mod' ) ;
612
- opts . reset = ( mode [ 1 ] === 'reset' ) ;
611
+ opts . mod = opts . mod || ( mode [ 1 ] === 'mod' ) ;
612
+ opts . reset = opts . reset || ( mode [ 1 ] === 'reset' ) ;
613
613
if ( opts . evaluate && ! playerIsGM ( playerid ) && ! state . ChatSetAttr . playersCanEvaluate ) {
614
614
handleErrors ( who , [ 'The --evaluate option is only available to the GM.' ] ) ;
615
615
return ;
Original file line number Diff line number Diff line change @@ -608,8 +608,8 @@ var chatSetAttr = chatSetAttr || (function () {
608
608
setting = parseAttributes ( _ . chain ( opts ) . omit ( optsArray ) . keys ( ) . value ( ) ,
609
609
opts . replace , fillInAttrs ) ,
610
610
deleteMode = ( mode [ 1 ] === 'del' ) ;
611
- opts . mod = ( mode [ 1 ] === 'mod' ) ;
612
- opts . reset = ( mode [ 1 ] === 'reset' ) ;
611
+ opts . mod = opts . mod || ( mode [ 1 ] === 'mod' ) ;
612
+ opts . reset = opts . reset || ( mode [ 1 ] === 'reset' ) ;
613
613
if ( opts . evaluate && ! playerIsGM ( playerid ) && ! state . ChatSetAttr . playersCanEvaluate ) {
614
614
handleErrors ( who , [ 'The --evaluate option is only available to the GM.' ] ) ;
615
615
return ;
You can’t perform that action at this time.
0 commit comments