Comparison

net/server_event.lua @ 2334:4cedfeeaaed4

net.server_event: Fix closeallservers() to work correctly after the giant refactorizification
author Matthew Wild <mwild1@gmail.com>
date Mon, 07 Dec 2009 19:25:16 +0000
parent 2333:ed824115becf
child 2335:060fb67cefd5
comparison
equal deleted inserted replaced
2333:ed824115becf 2334:4cedfeeaaed4
758 end 758 end
759 end )( ) 759 end )( )
760 760
761 local closeallservers = function( arg ) 761 local closeallservers = function( arg )
762 for _, item in ipairs( interfacelist( ) ) do 762 for _, item in ipairs( interfacelist( ) ) do
763 if item "type" == "server" then 763 if item.type == "server" then
764 item( "close", arg ) 764 item:close( arg )
765 end 765 end
766 end 766 end
767 end 767 end
768 768
769 return { 769 return {