]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lualocal.c
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / lua / lualocal.c
index 0d87682af67fe4735594043712f663e0132247cd..2d519e55e340754eb000f26b4648f69eb01b49da 100644 (file)
@@ -201,7 +201,7 @@ void lua_localnickhandler(nick *target, int type, void **args) {
       np = (nick *)args[0];
       c = (channel *)args[1];
 
-      if(!c || !np || !c->index || !c->index->name || !c->index->name->content)
+      if(!c || !np || !c->index || !c->index->name)
         return;
 
       lua_vlpcall(l, ln, "irc_oninvite", "Ns", np, c->index->name->content);
@@ -222,7 +222,7 @@ void lua_reconnectlocal(void *arg) {
   ln->reconnect = NULL;
 
   if(lua_getlocalnickbynick(ln->nick, &l, &ln)) /* hacky! */
-    lua_vlpcall(l, ln, "irc_onkillreconnect", "N", ln->nick);
+    lua_vlpcall(l, ln, "irc_onkillreconnect", "");
 }
 
 static int lua_localjoin(lua_State *ps) {