mirror of
https://github.com/MinetestForFun/irc_modpack.git
synced 2025-01-09 07:10:19 +01:00
fix typo
This commit is contained in:
parent
c32607320f
commit
cc23c43594
@ -44,7 +44,7 @@ minetest.register_chatcommand("irc_msg", {
|
||||
minetest.register_chatcommand("irc_names", {
|
||||
params = "",
|
||||
description = "List the users in IRC.",
|
||||
func = function(name, params)
|
||||
func = function(name, param)
|
||||
if not irc.connected then
|
||||
minetest.chat_send_player(name, "Not connected to IRC. Use /irc_connect to connect.")
|
||||
return
|
||||
@ -81,8 +81,8 @@ minetest.register_chatcommand("irc_disconnect", {
|
||||
minetest.chat_send_player(name, "You are not connected to IRC.")
|
||||
return
|
||||
end
|
||||
if params == "" then
|
||||
params = "Manual disconnect by "..name
|
||||
if param == "" then
|
||||
param = "Manual disconnect by "..name
|
||||
end
|
||||
irc:disconnect(param)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user