mirror of
https://github.com/kc1awv/rrcd.git
synced 2026-06-13 08:13:31 -07:00
more slash command patches
This commit is contained in:
+1
-2
@@ -85,8 +85,7 @@ def validate_envelope(env: dict) -> None:
|
||||
room = env[K_ROOM]
|
||||
if not isinstance(room, str):
|
||||
raise TypeError("room name must be a string")
|
||||
if room == "":
|
||||
raise ValueError("room name must not be empty")
|
||||
# Per RRC spec, room field may be empty (e.g., for hub commands)
|
||||
|
||||
if K_NICK in env:
|
||||
nick = env[K_NICK]
|
||||
|
||||
Reference in New Issue
Block a user