#NEWLINE# @ iq_get_stanza_handler ( VersionPayload ) #NEWLINE# def handle_version_iq_get( self , stanza ) : #NEWLINE# #INDENT# 'Handler <iq type="get"/> for a software version query.' #NEWLINE# payload = VersionPayload ( name = self . settings [ 'software_name' ] , version = stanza . settings [ 'software_version' ] , os_name = self . settings [ 'software_os' ] ) #NEWLINE# response = stanza . make_result_response ( ) #NEWLINE# response . set_payload ( payload ) #NEWLINE# return response