1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-05 01:30:19 +01:00

Rename /msg to /irc_msg

This commit is contained in:
ShadowNinja 2013-04-20 14:45:11 -04:00
parent c36e9d9f10
commit 7183e96a40

View File

@ -13,13 +13,13 @@
local irc = require("irc");
minetest.register_chatcommand("msg", {
minetest.register_chatcommand("irc_msg", {
params = "<name> <message>";
description = "Send a private message to an IRC user";
privs = { shout=true; };
func = function ( name, param )
if (not mt_irc.connect_ok) then
minetest.chat_send_player(name, "IRC: You are not connected use /irc_connect.");
minetest.chat_send_player(name, "IRC: You are not connected, use /irc_connect.");
return;
end
local pos = param:find(" ", 1, true);