5 Commits

Author SHA1 Message Date
6fef5c37cb readme 2016-11-29 20:19:29 +13:00
59abd3c50c always set an nmdc clientversion 2016-11-29 20:12:49 +13:00
610563b35c update libnmdc import path + compatibility 2016-11-29 20:10:15 +13:00
f3ad1fba8a readme 2016-10-09 16:56:06 +13:00
9268c4da4c Added tag release-1.0.1 for changeset 9ed95938d809 2016-10-08 17:00:30 +13:00
3 changed files with 10 additions and 3 deletions

View File

@@ -1 +1,2 @@
769fad81e3f8db8f7e5f5c164656a382a169d735 release-1.0.0
9ed95938d809a8226aca529e34b655e6d8c8c379 release-1.0.1

View File

@@ -4,12 +4,18 @@ Chat in real-time on your NMDC hub using a web browser. This project forks and d
Written in Golang
Tags: nmdc
=UPGRADING FROM DCWEBUI2=
- The configuration file format is identical, but please now ensure it's valid json instead of just a .js file. This means no assignment, use double-quoted strings, and no comments.
=CHANGELOG=
2016-11-29 1.0.2
- Rebuild with libnmdc 0.11
- Fix an issue with not setting a version in the client tag
2016-10-08 1.0.1
- Fix an issue with backward compatibility with `dcwebui2` configuration file format

View File

@@ -8,9 +8,8 @@ import (
"net/http"
"strings"
"code.ivysaur.me/libnmdc"
"github.com/googollee/go-socket.io"
"libnmdc"
)
type ActiveConnection struct {
@@ -49,6 +48,7 @@ func (this *App) HubWorker(Nick, Pass string, so socketio.Socket, done chan stru
selfUser := libnmdc.NewUserInfo(Nick)
selfUser.ClientTag = this.cfg.Hub.Tag
selfUser.ClientVersion = libnmdc.DEFAULT_CLIENT_VERSION
hco := libnmdc.HubConnectionOptions{
Address: libnmdc.HubAddress(fmt.Sprintf("%s:%d", this.cfg.Hub.Address, this.cfg.Hub.Port)),
@@ -112,7 +112,7 @@ func (this *App) HubWorker(Nick, Pass string, so socketio.Socket, done chan stru
} else if hev.StateChange == libnmdc.CONNECTIONSTATE_DISCONNECTED {
so.Emit("close")
} else {
so.Emit("sys", hev.StateChange.Format())
so.Emit("sys", hev.StateChange.String())
}
case libnmdc.EVENT_HUBNAME_CHANGED: