summary refs log tree commit diff stats
path: root/tests/manyloc/keineschweine/enet_server/enet_server.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manyloc/keineschweine/enet_server/enet_server.nim')
-rw-r--r--tests/manyloc/keineschweine/enet_server/enet_server.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/manyloc/keineschweine/enet_server/enet_server.nim b/tests/manyloc/keineschweine/enet_server/enet_server.nim
index eae7c034e..86d0ab360 100644
--- a/tests/manyloc/keineschweine/enet_server/enet_server.nim
+++ b/tests/manyloc/keineschweine/enet_server/enet_server.nim
@@ -102,8 +102,8 @@ handlers[HZoneJoinReq] = proc(client: PClient; buffer: PBuffer) =
 
 
 
-when isMainModule:
-  import parseopt, matchers, os, json
+when true:
+  import parseopt, os, json
 
 
   if enetInit() != 0:
@@ -113,12 +113,12 @@ when isMainModule:
 
   block:
     var zoneCfgFile = "./server_settings.json"
-    for kind, key, val in getOpt():
+    for kind, key, val in getopt():
       case kind
       of cmdShortOption, cmdLongOption:
         case key
         of "f", "file":
-          if existsFile(val):
+          if fileExists(val):
             zoneCfgFile = val
           else:
             echo("File does not exist: ", val)
@@ -136,7 +136,7 @@ when isMainModule:
     address.port = port
 
     var path = getAppDir()/../"data"/zoneFile
-    if not existsFile(path):
+    if not fileExists(path):
       echo("Zone settings file does not exist: ../data/", zoneFile)
       echo(path)
       quit(1)