forked from minetest-mods/irc
Rename /msg to /irc_msg
This commit is contained in:
parent
c36e9d9f10
commit
7183e96a40
@ -13,13 +13,13 @@
|
|||||||
|
|
||||||
local irc = require("irc");
|
local irc = require("irc");
|
||||||
|
|
||||||
minetest.register_chatcommand("msg", {
|
minetest.register_chatcommand("irc_msg", {
|
||||||
params = "<name> <message>";
|
params = "<name> <message>";
|
||||||
description = "Send a private message to an IRC user";
|
description = "Send a private message to an IRC user";
|
||||||
privs = { shout=true; };
|
privs = { shout=true; };
|
||||||
func = function ( name, param )
|
func = function ( name, param )
|
||||||
if (not mt_irc.connect_ok) then
|
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;
|
return;
|
||||||
end
|
end
|
||||||
local pos = param:find(" ", 1, true);
|
local pos = param:find(" ", 1, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user