This commit is contained in:
crabman77 2016-12-02 21:12:46 +01:00
parent c32607320f
commit cc23c43594
1 changed files with 3 additions and 3 deletions

View File

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