This commit is contained in:
Diego Martínez
2012-12-02 11:16:27 -02:00
parent 7d833e2b0b
commit 4afc86229c
2 changed files with 48 additions and 2 deletions

View File

@ -114,6 +114,16 @@ minetest.register_on_chat_message(function ( name, message )
};
end);
minetest.register_chatcommand("me", {
params = "<action>";
description = "chat action (eg. /me orders a pizza)";
privs = {shout=true};
func = function(name, param)
minetest.chat_send_all("* "..name.." "..param);
irc.say(CHANNEL, "* "..name.." "..param);
end;
})
irc.connect({
network = SERVER;
nick = SERVER_NICK;