update libnmdc import path + compatibility

This commit is contained in:
mappu 2016-11-29 20:10:15 +13:00
parent f3ad1fba8a
commit 610563b35c

View File

@ -8,9 +8,8 @@ import (
"net/http" "net/http"
"strings" "strings"
"code.ivysaur.me/libnmdc"
"github.com/googollee/go-socket.io" "github.com/googollee/go-socket.io"
"libnmdc"
) )
type ActiveConnection struct { 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 { } else if hev.StateChange == libnmdc.CONNECTIONSTATE_DISCONNECTED {
so.Emit("close") so.Emit("close")
} else { } else {
so.Emit("sys", hev.StateChange.Format()) so.Emit("sys", hev.StateChange.String())
} }
case libnmdc.EVENT_HUBNAME_CHANGED: case libnmdc.EVENT_HUBNAME_CHANGED: