gameServer/OfficialServer/DBInteraction.hs
changeset 1970 130e7805d49c
parent 1963 58c29439225d
child 1979 912e450d4db2
equal deleted inserted replaced
1969:3b04393b1291 1970:130e7805d49c
    49 				if isJust passAndRole then
    49 				if isJust passAndRole then
    50 					writeChan coreChan $
    50 					writeChan coreChan $
    51 							ClientAccountInfo (clientUID client) $
    51 							ClientAccountInfo (clientUID client) $
    52 								HasAccount
    52 								HasAccount
    53 									(fromSql $ head $ fromJust $ passAndRole)
    53 									(fromSql $ head $ fromJust $ passAndRole)
    54 									((fromSql $ last $ fromJust $ passAndRole) == (3 :: Int))
    54 									((fromSql $ last $ fromJust $ passAndRole) == (Just (3 :: Int)))
    55 					else
    55 					else
    56 					writeChan coreChan $ ClientAccountInfo (clientUID client) Guest
    56 					writeChan coreChan $ ClientAccountInfo (clientUID client) Guest
    57 			`onException`
    57 			`onException`
    58 				(unGetChan queries q)
    58 				(unGetChan queries q)
    59 
    59