1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-09-27 15:46:53 -04:00

change query character syntax, don't reply that we're resending stuff

This commit is contained in:
Craig Lamparter 2021-01-10 14:44:40 -08:00
parent e6dee3a5b0
commit 0aa7fe7a14

View File

@ -25,7 +25,7 @@ class QueryPlugin(plugin.APRSDPluginBase):
r = re.search(r"^\?[rR].*", message)
if r is not None:
if len(tracker) > 0:
reply = "Resend ALL Delayed msgs"
reply = messaging.NULL_MESSAGE
LOG.debug(reply)
tracker.restart_delayed()
else:
@ -33,9 +33,9 @@ class QueryPlugin(plugin.APRSDPluginBase):
LOG.debug(reply)
return reply
r = re.search(r"^\?[fF].*", message)
r = re.search(r"^\?[dD].*", message)
if r is not None:
reply = "Deleting ALL Delayed msgs."
reply = "Deleted ALL delayed msgs."
LOG.debug(reply)
tracker.flush()
return reply