1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-26 00:40:19 +01:00

Make username and realname configurable.

This commit is contained in:
texmex 2017-06-15 00:55:28 +02:00 committed by Diego Martínez
parent 070eb51236
commit f57bdba5e9
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)