WebHost: don't bother queuing empty commands
This commit is contained in:
parent
706fc19ab4
commit
3bf367d630
|
@ -166,6 +166,7 @@ def host_room(room: UUID):
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
if room.owner == session["_id"]:
|
if room.owner == session["_id"]:
|
||||||
cmd = request.form["cmd"]
|
cmd = request.form["cmd"]
|
||||||
|
if cmd:
|
||||||
Command(room=room, commandtext=cmd)
|
Command(room=room, commandtext=cmd)
|
||||||
commit()
|
commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue