summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-evt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afb-evt.c b/src/afb-evt.c
index d80af045..20ef5e9e 100644
--- a/src/afb-evt.c
+++ b/src/afb-evt.c
@@ -213,9 +213,11 @@ static int evt_push(struct afb_evt_event *evt, struct json_object *obj)
*/
static const char *evt_name(struct afb_evt_event *evt)
{
+ const char *name = strchr(evt->name, '/');
+ name = name ? name + 1 : evt->name;
if (evt->hookflags & afb_hook_flag_evt_name)
afb_hook_evt_name(evt->name, evt->id);
- return evt->name;
+ return name;
}
/*