@@ -401,7 +401,8 @@ def getParam(self, bot, sender, dest, cmd, args):
401
401
402
402
def getMember (self , bot , sender , dest , cmd , args ):
403
403
member_type = 'field'
404
- if cmd ['command' ] == 'gm' : member_type = 'method'
404
+ if cmd ['command' ] == 'gm' or args [0 ].startswith ('func_' ): member_type = 'method'
405
+ if args [0 ].startswith ('field_' ): member_type = 'field'
405
406
val , status = self .db .getMember (member_type , args )
406
407
self .sendMemberResults (sender , dest , val , status , limit = self .getOutputLimit (sender , dest ))
407
408
@@ -413,8 +414,9 @@ def getClass(self, bot, sender, dest, cmd, args):
413
414
414
415
def getHistory (self , bot , sender , dest , cmd , args ):
415
416
member_type = 'field'
416
- if cmd ['command' ] == 'mh' : member_type = 'method'
417
- if cmd ['command' ] == 'ph' : member_type = 'method_param'
417
+ if cmd ['command' ] == 'mh' or args [0 ].startswith ('func_' ): member_type = 'method'
418
+ if cmd ['command' ] == 'ph' or args [0 ].startswith ('p_' ): member_type = 'method_param'
419
+ if args [0 ].startswith ('field_' ): member_type = 'field'
418
420
if isSrgName (args [0 ]) or is_integer (args [0 ]) or member_type == 'method_param' :
419
421
val , status = self .db .getHistory (member_type , args )
420
422
self .sendHistoryResults (member_type , sender , dest , val , status , limit = self .getOutputLimit (sender , dest ))
@@ -430,9 +432,9 @@ def findKey(self, bot, sender, dest, cmd, args):
430
432
431
433
def findAllKey (self , bot , sender , dest , cmd , args ):
432
434
showAll = cmd ['command' ][- 1 ] in ('d' , 'l' )
433
- showFields = cmd ['command' ][- 1 ] == 'f'
434
- showMethods = cmd ['command' ][- 1 ] == 'm'
435
- showParams = cmd ['command' ][- 1 ] == 'p'
435
+ showFields = cmd ['command' ][- 1 ] == 'f' or args [ 0 ]. find ( 'field_' ) > - 1
436
+ showMethods = cmd ['command' ][- 1 ] == 'm' or args [ 0 ]. find ( 'func_' ) > - 1
437
+ showParams = cmd ['command' ][- 1 ] == 'p' or args [ 0 ]. find ( 'p_' ) > - 1
436
438
showClasses = cmd ['command' ][- 1 ] == 'c'
437
439
if showAll :
438
440
limit = self .getOutputLimit (sender , dest ) / 2
0 commit comments