aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/action.c b/action.c
index a8f3f70..bd9961a 100644
--- a/action.c
+++ b/action.c
@@ -224,9 +224,9 @@ fill_ev_table(char *input) {
break;
}
if(str4 == kommatoken && str4 != token && eid != -1) {
- if((ah = (void *)get_action_handler(dptoken)) == NULL) {
+ if((ah = (void *)get_action_handler(dptoken)) != NULL) {
new_event(eid);
- add_handler(eid, i, get_action_handler(dptoken));
+ add_handler(eid, i, ah);
i++;
}
}