Merge branch 'master' into mutualisation

This commit is contained in:
Chteufleur 2016-04-12 19:10:06 +02:00
commit 11b43f35bf
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import (
) )
const ( const (
Version = "go-xmpp4steam v0.2.0" Version = "go-xmpp4steam v0.2.1"
configurationFilePath = "xmpp4steam.cfg" configurationFilePath = "xmpp4steam.cfg"
) )

View File

@ -85,8 +85,9 @@ func mainSteam() {
b, err := json.Marshal(*e) b, err := json.Marshal(*e)
if err != nil { if err != nil {
log.Printf("%sFailed to json.Marshal() servers list", LogError) log.Printf("%sFailed to json.Marshal() servers list", LogError)
} else {
ioutil.WriteFile(serverAddrs, b, 0666)
} }
ioutil.WriteFile(serverAddrs, b, 0666)
case *steam.PersonaStateEvent: case *steam.PersonaStateEvent:
ChanPresence <- e.FriendId.ToString() ChanPresence <- e.FriendId.ToString()