mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 17:20:20 +01:00
Shorten auto-generated nick, it was too long and was cut off.
This commit is contained in:
parent
8b53211160
commit
409dbf9262
@ -33,9 +33,8 @@ irc.DEBUG = ((mt_irc.debug and true) or false);
|
|||||||
if (not mt_irc.server_nick) then
|
if (not mt_irc.server_nick) then
|
||||||
local pr = PseudoRandom(os.time());
|
local pr = PseudoRandom(os.time());
|
||||||
-- Workaround for bad distribution in minetest PRNG implementation.
|
-- 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(
|
mt_irc.server_nick = fmt:format(
|
||||||
pr:next(0, 255),
|
|
||||||
pr:next(0, 255),
|
pr:next(0, 255),
|
||||||
pr:next(0, 255),
|
pr:next(0, 255),
|
||||||
pr:next(0, 255)
|
pr:next(0, 255)
|
||||||
|
Loading…
Reference in New Issue
Block a user