update libnmdc import path + compatibility
This commit is contained in:
parent
f3ad1fba8a
commit
610563b35c
5
main.go
5
main.go
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user