From 77babd4b4d14bdaf59a31791dca8f96f577f9dd2 Mon Sep 17 00:00:00 2001 From: Sunblade Date: Mon, 15 Sep 2025 20:36:33 +0000 Subject: [PATCH] Upload files to "/" --- hx_drives.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hx_drives.lua diff --git a/hx_drives.lua b/hx_drives.lua new file mode 100644 index 0000000..fb8ba83 --- /dev/null +++ b/hx_drives.lua @@ -0,0 +1,24 @@ +--[[ +hx_drives.lua +By Sunblade +sunblade@tilde.club + +For Hexchat 2.16+ (Windows build) + +License: MIT + +Usage: /drives + +]] + +hexchat.register("hx_drives.lua","0.0.1","Display the list of storage drives - Usage: /drives") + +function drives() + i = io.popen("wmic logicaldisk get name,freespace,volumename,filesystem") + o = i:read("*a") + i:close() + hexchat.print(o) + return hexchat.EAT_ALL +end + +hexchat.hook_command("drives", drives)