]> jfr.im git - irc/quakenet/newserv.git/commitdiff
lua: Implement notice handler for local users.
authorGunnar Beutner <redacted>
Fri, 21 Jun 2013 09:29:02 +0000 (11:29 +0200)
committerGunnar Beutner <redacted>
Fri, 21 Jun 2013 09:29:02 +0000 (11:29 +0200)
lua/lualocal.c

index 66d93a2f42c0a23cfa642d45fa70e57c2a304d25..0d87682af67fe4735594043712f663e0132247cd 100644 (file)
@@ -159,6 +159,17 @@ void lua_localnickhandler(nick *target, int type, void **args) {
 
       break;
 
+    case LU_PRIVNOTICE:
+      np = (nick *)args[0];
+      p = (char *)args[1];
+
+      if(!np || !p)
+        return;
+
+      lua_vlpcall(l, ln, "irc_onnotice", "Ns", np, p);
+
+      break;
+
     case LU_CHANMSG:
       np = (nick *)args[0];
       c = (channel *)args[1];