mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-10-01 03:26:35 -05:00
GPCM: Fix login check
This commit is contained in:
@@ -157,7 +157,7 @@ func handleRequest(conn net.Conn) {
|
||||
commands = session.handleCommand("login", commands, session.login)
|
||||
commands = session.ignoreCommand("logout", commands)
|
||||
|
||||
if session.LoggedIn == false {
|
||||
if len(commands) != 0 && session.LoggedIn == false {
|
||||
logging.Error(session.ModuleName, "Attempt to run command before login!")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user