comparison mcabber/mcabber/commands.c @ 2024:789779fd728d

Fix /event usage when a reason is provided
author Mikael Berthe <mikael@lilotux.net>
date Sat, 25 Aug 2012 12:05:19 +0200
parents f88de5187d3b
children 0771e130f79d
comparison
equal deleted inserted replaced
2023:26edaf6ea10b 2024:789779fd728d
3596 // Let's create a slist with the provided event id 3596 // Let's create a slist with the provided event id
3597 evidlst = g_slist_append(NULL, evid); 3597 evidlst = g_slist_append(NULL, evid);
3598 } 3598 }
3599 for (p = evidlst; p; p = g_slist_next(p)) { 3599 for (p = evidlst; p; p = g_slist_next(p)) {
3600 if (evs_callback(p->data, action, 3600 if (evs_callback(p->data, action,
3601 (const char*)(paramlst+2)) == -1) { 3601 (const char*)*(paramlst+2)) == -1) {
3602 scr_LogPrint(LPRINT_NORMAL, "Event %s not found.", 3602 scr_LogPrint(LPRINT_NORMAL, "Event %s not found.",
3603 (const char *)p->data); 3603 (const char *)p->data);
3604 } 3604 }
3605 } 3605 }
3606 g_slist_free(evidlst); 3606 g_slist_free(evidlst);