From 409dbf9262a12f33b651b8e3d2f3ce8f449bb502 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 19 Apr 2013 23:49:06 -0400 Subject: [PATCH] Shorten auto-generated nick, it was too long and was cut off. --- src/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.lua b/src/init.lua index 9a73e33..86e3bfa 100644 --- a/src/init.lua +++ b/src/init.lua @@ -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)