aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
Diffstat (limited to 'action.c')
-rw-r--r--action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/action.c b/action.c
index 0b8c7d9..9fb400e 100644
--- a/action.c
+++ b/action.c
@@ -56,7 +56,7 @@ struct action_lookup ac_lookup_table[] = {
ev_list *head = NULL;
int
-new_event(evid) {
+new_event(long evid) {
ev_list *item, *newitem;
if(!head) {
@@ -224,9 +224,9 @@ fill_ev_table(char *input) {
break;
}
if(str4 == kommatoken && str4 != token && eid != -1) {
- if((ah = (void *)get_action_handler(dptoken))) {
+ if((ah = (void *)get_action_handler(dptoken)) == NULL) {
new_event(eid);
- add_handler(eid, i, ah);
+ add_handler(eid, i, get_action_handler(dptoken));
i++;
}
}