mirror of
https://github.com/minetest-mods/irc.git
synced 2024-11-16 06:40:19 +01:00
Make username and realname configurable.
This commit is contained in:
parent
070eb51236
commit
f57bdba5e9
|
@ -32,6 +32,8 @@ setting("string", "server", nil, true) -- Server address to connect to
|
||||||
setting("number", "port", 6667) -- Server port to connect to
|
setting("number", "port", 6667) -- Server port to connect to
|
||||||
setting("string", "NSPass") -- NickServ password
|
setting("string", "NSPass") -- NickServ password
|
||||||
setting("string", "sasl.user", irc.config.nick) -- SASL username
|
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", "sasl.pass") -- SASL password
|
||||||
setting("string", "channel", nil, true) -- Channel to join
|
setting("string", "channel", nil, true) -- Channel to join
|
||||||
setting("string", "key") -- Key for the channel
|
setting("string", "key") -- Key for the channel
|
||||||
|
|
4
init.lua
4
init.lua
|
@ -137,8 +137,8 @@ function irc.connect()
|
||||||
end
|
end
|
||||||
irc.conn = irc.lib.new({
|
irc.conn = irc.lib.new({
|
||||||
nick = irc.config.nick,
|
nick = irc.config.nick,
|
||||||
username = "Minetest",
|
username = irc.config.username,
|
||||||
realname = "Minetest",
|
realname = irc.config.realname,
|
||||||
})
|
})
|
||||||
irc.doHook(irc.conn)
|
irc.doHook(irc.conn)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user