diff --git a/main.go b/main.go index 880d359..8ecca1d 100644 --- a/main.go +++ b/main.go @@ -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: