mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-10 18:08:44 -04:00
Fixed the usage string after plugins introduced
This patch fixes the Usage string for a call message that isn't matched by any plugin. Plugin object now must impleent a 'command_name' attribute that is the usage string for that plugin.
This commit is contained in:
@@ -11,6 +11,7 @@ class HelloPlugin(plugin.APRSDPluginBase):
|
||||
version = "1.0"
|
||||
# matches any string starting with h or H
|
||||
command_regex = "^[hH]"
|
||||
command_name = "hello"
|
||||
|
||||
def command(self, fromcall, message, ack):
|
||||
LOG.info("HelloPlugin")
|
||||
|
||||
Reference in New Issue
Block a user