no need to use loops for saving hash
i made one ueing hash a few days ago
this is from the one i made this is the save an load
on *:disconnect:{ .hsave ircstats $qt($scriptdirircstats.hsh) }
on *:exit:{ .hsave ircstats $qt($scriptdirircstats.hsh) }
on *:start:{ if (!$hget(ircstats)) { .hmake ircstats 1000 | .hload ircstats $qt($scriptdirircstats.hsh) } }
on *:load:{ if (!$hget(ircstats)) { .hmake ircstats 1000 | .hload ircstats $qt($scriptdirircstats.hsh) } }