1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-24 10:50:35 -05:00

swap Query command characters a bit

This commit is contained in:
Craig Lamparter 2021-01-09 14:02:16 -08:00
parent 9f4cc27a11
commit a33462327a

View File

@ -370,20 +370,19 @@ class QueryPlugin(APRSDPluginBase):
searchstring = "^" + self.config["ham"]["callsign"] + ".*" searchstring = "^" + self.config["ham"]["callsign"] + ".*"
# only I can do admin commands # only I can do admin commands
if re.search(searchstring, fromcall): if re.search(searchstring, fromcall):
r = re.search(r"^\?-\*", message) r = re.search(r"^\?[rR].*", message)
if r is not None: if r is not None:
if len(tracker) > 0: if len(tracker) > 0:
reply = "Resend ALL Delayed msgs" reply = messaging.NULL_MESSAGE
LOG.debug(reply)
tracker.restart_delayed() tracker.restart_delayed()
else: else:
reply = "No Delayed Msgs" reply = "No Delayed Msgs"
LOG.debug(reply) LOG.debug(reply)
return reply return reply
r = re.search(r"^\?-[fF]!", message) r = re.search(r"^\?[dD].*", message)
if r is not None: if r is not None:
reply = "Deleting ALL Delayed msgs." reply = "Deleted ALL unacked msgs"
LOG.debug(reply) LOG.debug(reply)
tracker.flush() tracker.flush()
return reply return reply