]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/luabot.c
rework build system, part 1:
[irc/quakenet/newserv.git] / lua / luabot.c
index 10aea58ec6e6e4c49c37fe96179ecc9f1ed9bc18..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;
@@ -352,11 +353,12 @@ void lua_onpart(int hooknum, void *arg) {
   void **arglist = (void **)arg;
   chanindex *ci = ((channel *)arglist[0])->index;
   nick *np = arglist[1];
+  char *reason = arglist[2];
 
   if(!ci || !np)
     return;
 
-  lua_avpcall("irc_onpart", "Sl", ci->name, np->numeric);
+  lua_avpcall("irc_onpart", "Sls", ci->name, np->numeric, reason);
 }
 
 void lua_onrename(int hooknum, void *arg) {