]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/luacommands.c
gline playground
[irc/quakenet/newserv.git] / lua / luacommands.c
index ce00d522a4bae26d9f94bdb51700e96f96f08368..205bafc4f0f852ebed9f386d319e61f053a28a76 100644 (file)
@@ -260,7 +260,7 @@ static int lua_gline(lua_State *ps) {
     snprintf(mask, sizeof(mask), "*@%s", IPtostr(target->p_ipaddr));
   }
 
-  irc_send("%s GL * +%s %d :%s", mynumeric->content, mask, duration, reason);
+  irc_send("%s GL * +%s %d %jd :%s", mynumeric->content, mask, duration, (intmax_t)getnettime(), reason);
   LUA_RETURN(ps, lua_cmsg(LUA_PUKECHAN, "lua-GLINE: %s (%d users, %d seconds -- %s)", mask, usercount, duration, reason));
 }