gameServer/Opts.hs
changeset 3500 af8390d807d6
parent 2966 fab0d8b04bb9
child 3671 a94d1dc4a8d9
--- a/gameServer/Opts.hs	Sat Jun 05 20:49:51 2010 +0000
+++ b/gameServer/Opts.hs	Sun Jun 06 15:29:33 2010 +0000
@@ -7,6 +7,8 @@
 import System.Console.GetOpt
 import Network
 import Data.Maybe ( fromMaybe )
+import qualified Data.ByteString.Char8 as B
+
 import CoreTypes
 import Utils
 
@@ -30,9 +32,9 @@
     where
         readDedicated = fromMaybe True (maybeRead str :: Maybe Bool)
 
-readDbLogin str opts = opts{dbLogin = str}
-readDbPassword str opts = opts{dbPassword = str}
-readDbHost str opts = opts{dbHost = str}
+readDbLogin str opts = opts{dbLogin = B.pack str}
+readDbPassword str opts = opts{dbPassword = B.pack str}
+readDbHost str opts = opts{dbHost = B.pack str}
 
 getOpts :: ServerInfo -> IO ServerInfo
 getOpts opts = do