This repository was archived by the owner on Jul 17, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-47
lines changed Expand file tree Collapse file tree 3 files changed +7
-47
lines changed Original file line number Diff line number Diff line change @@ -1075,29 +1075,9 @@ bot.Command = function ( cmd ) {
1075
1075
} ) ;
1076
1076
1077
1077
cmd . exec = function ( ) {
1078
- var args = arguments ,
1079
- self = this ,
1080
- ret ;
1081
-
1082
1078
this . invoked += 1 ;
1083
1079
1084
- if ( this . format && this . logic ) {
1085
- if ( this . async ) {
1086
- args . push ( function ( ) {
1087
- self . format . apply ( self , arguments ) ;
1088
- } ) ;
1089
-
1090
- this . logic . apply ( this , args ) ;
1091
- }
1092
- else {
1093
- ret = this . format ( this . logic . apply ( this , args ) ) ;
1094
- }
1095
- }
1096
- else {
1097
- ret = this . fun . apply ( this . thisArg , arguments ) ;
1098
- }
1099
-
1100
- return ret ;
1080
+ return this . fun . apply ( this . thisArg , arguments ) ;
1101
1081
} ;
1102
1082
1103
1083
cmd . del = function ( ) {
Original file line number Diff line number Diff line change @@ -368,29 +368,9 @@ bot.Command = function ( cmd ) {
368
368
} ) ;
369
369
370
370
cmd . exec = function ( ) {
371
- var args = arguments ,
372
- self = this ,
373
- ret ;
374
-
375
371
this . invoked += 1 ;
376
372
377
- if ( this . format && this . logic ) {
378
- if ( this . async ) {
379
- args . push ( function ( ) {
380
- self . format . apply ( self , arguments ) ;
381
- } ) ;
382
-
383
- this . logic . apply ( this , args ) ;
384
- }
385
- else {
386
- ret = this . format ( this . logic . apply ( this , args ) ) ;
387
- }
388
- }
389
- else {
390
- ret = this . fun . apply ( this . thisArg , arguments ) ;
391
- }
392
-
393
- return ret ;
373
+ return this . fun . apply ( this . thisArg , arguments ) ;
394
374
} ;
395
375
396
376
cmd . del = function ( ) {
You can’t perform that action at this time.
0 commit comments