def serversetting(accessing_obj, accessed_obj, *args, **kwargs):
 if ((not args) or (not args[0])):
  return False
 if (len(args) < 2):
  setting = args[0]
  val = 'True'
 else:
  (setting, val) = (args[0], args[1])
 if (val == 'True'):
  val = True
 elif (val == 'False'):
  val = False
 elif val.isdigit():
  val = int(val)
 if (setting in settings._wrapped.__dict__):
  return (settings._wrapped.__dict__[setting] == val)
 return False

def serversetting ( accessing_obj , accessed_obj , * args , ** kwargs ) : if ( ( not args ) or ( not args [ 0 ] ) ) : return False if ( len ( args ) < 2 ) : setting = args [ 0 ] val = 'True' else : ( setting , val ) = ( args [ 0 ] , args [ 1 ] ) if ( val == 'True' ) : val = True elif ( val == 'False' ) : val = False elif val . isdigit ( ) : val = int ( val ) if ( setting in settings . _wrapped . __dict__ ) : return ( settings . _wrapped . __dict__ [ setting ] == val ) return False
only returns true if the evennia settings exists .