update libnmdc import path + compatibility

This commit is contained in:
mappu 2016-11-29 20:10:15 +13:00
parent f3ad1fba8a
commit 610563b35c
1 changed files with 2 additions and 3 deletions

View File

@ -8,9 +8,8 @@ import (
"net/http"
"strings"
"code.ivysaur.me/libnmdc"
"github.com/googollee/go-socket.io"
"libnmdc"
)
type ActiveConnection struct {
@ -112,7 +111,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: