Update hx_drives.lua

This commit is contained in:
Sunblade 2025-10-27 11:03:36 +00:00
parent 77babd4b4d
commit 0a80da2458
1 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ 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)
input = io.popen("wmic logicaldisk get name,freespace,volumename,filesystem")
output = input:read("*a")
input:close()
hexchat.print(output)
return hexchat.EAT_ALL
end