comparison mcabber/mcabber/hooks.c @ 1785:5c043358ded0

Add resource name to the hook-message-in hook Bump API version to 5
author Mikael Berthe <mikael@lilotux.net>
date Sun, 14 Mar 2010 16:15:21 +0100
parents 250ad919f03f
children 1f913c92c9b2
comparison
equal deleted inserted replaced
1784:250ad919f03f 1785:5c043358ded0
240 // We can use a const array for keys/static values, so modules 240 // We can use a const array for keys/static values, so modules
241 // can do fast known to them args check by just comparing pointers... 241 // can do fast known to them args check by just comparing pointers...
242 hk_arg_t args[] = { 242 hk_arg_t args[] = {
243 { "hook", "hook-message-in" }, 243 { "hook", "hook-message-in" },
244 { "jid", bjid }, 244 { "jid", bjid },
245 { "resource", resname },
245 { "message", wmsg }, 246 { "message", wmsg },
246 { "groupchat", is_groupchat ? "true" : "false" }, 247 { "groupchat", is_groupchat ? "true" : "false" },
247 { NULL, NULL }, 248 { NULL, NULL },
248 }; 249 };
249 while (h) { 250 while (h) {