+static void nw_hook_message(int hooknum, void *arg) {
+ void **args = arg;
+ nick *np = args[0];
+ int isnotice = (uintptr_t)args[2];
+ nickwatchevent *nwe = nwe_new(np, isnotice ? "notice" : "message");
+ scheduleoneshot(0, nw_sched_processevent, nwe);
+}
+