1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-27 01:10:17 +01:00

Shorten auto-generated nick, it was too long and was cut off.

This commit is contained in:
ShadowNinja 2013-04-19 23:49:06 -04:00
parent 8b53211160
commit 409dbf9262

View File

@ -33,9 +33,8 @@ irc.DEBUG = ((mt_irc.debug and true) or false);
if (not mt_irc.server_nick) then
local pr = PseudoRandom(os.time());
-- Workaround for bad distribution in minetest PRNG implementation.
local fmt = "minetest-%02X%02X%02X%02X";
local fmt = "minetest-%02X%02X%02X";
mt_irc.server_nick = fmt:format(
pr:next(0, 255),
pr:next(0, 255),
pr:next(0, 255),
pr:next(0, 255)