From f57bdba5e91735755f931f862245a1815a3e1a95 Mon Sep 17 00:00:00 2001 From: texmex Date: Thu, 15 Jun 2017 00:55:28 +0200 Subject: [PATCH] Make username and realname configurable. --- config.lua | 2 ++ init.lua | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index f0775d9..c629e47 100644 --- a/config.lua +++ b/config.lua @@ -32,6 +32,8 @@ setting("string", "server", nil, true) -- Server address to connect to setting("number", "port", 6667) -- Server port to connect to setting("string", "NSPass") -- NickServ password setting("string", "sasl.user", irc.config.nick) -- SASL username +setting("string", "username", "Minetest") -- Username/ident +setting("string", "realname", "Minetest") -- Real name/GECOS setting("string", "sasl.pass") -- SASL password setting("string", "channel", nil, true) -- Channel to join setting("string", "key") -- Key for the channel diff --git a/init.lua b/init.lua index 12f90fb..67dec28 100644 --- a/init.lua +++ b/init.lua @@ -137,8 +137,8 @@ function irc.connect() end irc.conn = irc.lib.new({ nick = irc.config.nick, - username = "Minetest", - realname = "Minetest", + username = irc.config.username, + realname = irc.config.realname, }) irc.doHook(irc.conn)