mirror of
https://github.com/MinetestForFun/irc_modpack.git
synced 2025-01-09 23:30:18 +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", {
|
minetest.register_chatcommand("irc_names", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "List the users in IRC.",
|
description = "List the users in IRC.",
|
||||||
func = function(name, params)
|
func = function(name, param)
|
||||||
if not irc.connected then
|
if not irc.connected then
|
||||||
minetest.chat_send_player(name, "Not connected to IRC. Use /irc_connect to connect.")
|
minetest.chat_send_player(name, "Not connected to IRC. Use /irc_connect to connect.")
|
||||||
return
|
return
|
||||||
@ -81,8 +81,8 @@ minetest.register_chatcommand("irc_disconnect", {
|
|||||||
minetest.chat_send_player(name, "You are not connected to IRC.")
|
minetest.chat_send_player(name, "You are not connected to IRC.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if params == "" then
|
if param == "" then
|
||||||
params = "Manual disconnect by "..name
|
param = "Manual disconnect by "..name
|
||||||
end
|
end
|
||||||
irc:disconnect(param)
|
irc:disconnect(param)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user