Skip to content

Commit

Permalink
Loosen up the restrictions on what counts as a "testimony title" - no…
Browse files Browse the repository at this point in the history
…w, whatever message you use the "witness testimony" button on will be considered the testimony title
  • Loading branch information
Crystalwarrior committed Feb 2, 2025
1 parent 97af98d commit bdf638a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
29 changes: 13 additions & 16 deletions server/network/aoprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1854,22 +1854,19 @@ def net_cmd_rt(self, args):
.replace("`", "")
.strip()
)
if (msg.startswith("-") and msg.endswith("-")) or (
msg.startswith("=") and msg.endswith("=")
):
msg = msg.replace("-", "")
msg = msg.replace("=", "")
msg = msg.strip()
# actual title possible lol!
if len(msg) > 0:
self.client.area.testimony.clear()
self.client.area.testimony_index = -1
self.client.area.testimony_title = msg
self.client.area.recording = True
self.client.area.broadcast_ooc(
f'-- {self.client.area.testimony_title} --\nTestimony recording started! All new messages will be recorded as testimony lines. Say "End" to stop recording.'
)
return
msg = msg.replace("-", "")
msg = msg.replace("=", "")
msg = msg.strip()
# actual title possible lol!
if len(msg) > 0:
self.client.area.testimony.clear()
self.client.area.testimony_index = -1
self.client.area.testimony_title = msg
self.client.area.recording = True
self.client.area.broadcast_ooc(
f'-- {self.client.area.testimony_title} --\nTestimony recording started! All new messages will be recorded as testimony lines. Say "End" to stop recording.'
)
return
if sign == "CE":
if self.client.area.recording:
self.client.area.recording = False
Expand Down
1 change: 0 additions & 1 deletion start_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def check_deps():
"-m",
"pip",
"install",
"--user",
"-r",
"requirements.txt",
]
Expand Down

0 comments on commit bdf638a

Please sign in to comment.