Diff

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
line wrap: on
line diff
--- a/net/server_event.lua	Mon Dec 07 18:42:31 2009 +0000
+++ b/net/server_event.lua	Mon Dec 07 19:25:16 2009 +0000
@@ -760,8 +760,8 @@
 
 local closeallservers = function( arg )
 	for _, item in ipairs( interfacelist( ) ) do
-		if item "type" == "server" then
-			item( "close", arg )
+		if item.type == "server" then
+			item:close( arg )
 		end
 	end
 end