Board: [WWIVnet] WWIV Development Subject: notes on what i'm working on From: Xenos #1 @60 Date: Fri Feb 17, 2023 02:55 hi all! i'm currently working on cleaning up network2/subs.cpp handle_sub_add_drop_resp() with a lot of heavy lifting by Rushfan. i'm uncovering bugs there and we've fixed quite a lot. i'm doing this in preparation for more work on network2/subs.cpp handle_sub_add_req(), which is where i intend to try adding some of AutoSend functionality. i've actually done some testing on Aliens and Aladdin's Lamp for one of the most requested functions of AutoSend, which is sending XX posts from the sub to new subscribers. here's a diff that you can try if you want to test it yourself. let me know how it goes for you. -=<(xenos)>=- diff --git a/network2/subs.cpp b/network2/subs.cpp index c43332689..789f9fd3c 100644 --- a/network2/subs.cpp +++ b/network2/subs.cpp @@ -212,6 +212,9 @@ bool handle_sub_add_req(Context& context, NetPacket& p) { const auto msg = fmt::format("Added System @{} to subtype: {}",p.nh.fromsys, subtype); LOG(INFO) << msg; context.ssm.send_local(1, msg); + const auto exe = fmt::format("wwivutil net send {} {} 5 .{}", subtype, p.nh.fromsys, context.net.network_number()); + LOG(INFO) << "Command: " << exe; + system(exe.c_str()); return resp(sub_adddrop_ok); } A .-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-. /*\ | /\liens' /\lcove! WWIV on Linux, Taguig, Metro Manila, Philippines | / v \`-=-=-=-=-=-=-=-=-=-=-=-[ WWIV Development ]-=-=--=-=-=-=-=-=-=-=-=-=-' .