]> jfr.im git - irc/quakenet/newserv.git/commitdiff
lua: Implement notice handlers.
authorGunnar Beutner <redacted>
Fri, 21 Jun 2013 09:19:17 +0000 (11:19 +0200)
committerGunnar Beutner <redacted>
Fri, 21 Jun 2013 09:19:17 +0000 (11:19 +0200)
lua/luabot.c

index a7a3692202d0348d4fe1ce31c0fa85fc24345d8b..a4d5fc6735ebc4f72e9bfbfd94074b987151b70b 100644 (file)
@@ -248,7 +248,8 @@ void lua_bothandler(nick *target, int type, void **args) {
           p[le - 1] = '\000';
 
         lua_avpcall("irc_onctcp", "ls", np->numeric, p + 1);
-
+      } else {
+        lua_avpcall("irc_onnotice", "ls", np->numeric, p);
       }
 
       break;