aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go4
-rw-r--r--process.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/config.go b/config.go
index f19e35b..d3394dd 100644
--- a/config.go
+++ b/config.go
@@ -86,7 +86,7 @@ func FallbackServers(server string) []string {
fallbacks := make([]string, 0)
conf := Conf()
-
+
// find server
for _, srv := range conf.Servers {
if srv.Name == server {
@@ -100,7 +100,7 @@ func FallbackServers(server string) []string {
if len(conf.Servers) == 0 {
return fallbacks
}
-
+
return append(fallbacks, conf.Servers[0].Name)
} else {
return append(fallbacks, conf.FallbackServers...)
diff --git a/process.go b/process.go
index 84a1622..59b8f06 100644
--- a/process.go
+++ b/process.go
@@ -538,7 +538,7 @@ func (sc *ServerConn) process(pkt mt.Pkt) {
return
case *mt.ToCltKick:
sc.Log("<-", "deny access", cmd)
-
+
if cmd.Reason == mt.Shutdown || cmd.Reason == mt.Crash || cmd.Reason == mt.SrvErr || cmd.Reason == cmd.TooManyClts || cmd.Reason == cmd.UnsupportedVer {
clt.SendChatMsg(cmd.String())
for _, srvName := range FallbackServers(sc.name) {
@@ -547,7 +547,7 @@ func (sc *ServerConn) process(pkt mt.Pkt) {
break
}
}
-
+
return
}