1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-12-28 09:40:17 +01:00
This commit is contained in:
Diego Martínez 2012-12-26 04:37:46 -02:00
parent e39df9cd63
commit 83db0a739d

View File

@ -30,14 +30,7 @@ minetest.register_chatcommand("irc_connect", {
minetest.chat_send_player(name, "IRC: You are already connected."); minetest.chat_send_player(name, "IRC: You are already connected.");
return; return;
end end
mt_irc.connect_ok = pcall(irc.connect, { mt_irc.connect();
network = mt_irc.server;
port = mt_irc.port;
nick = mt_irc.server_nick;
pass = mt_irc.password;
timeout = mt_irc.timeout;
channel = mt_irc.channel;
});
minetest.chat_send_player(name, "IRC: You are now connected."); minetest.chat_send_player(name, "IRC: You are now connected.");
irc.say(mt_irc.channel, name.." joined the channel."); irc.say(mt_irc.channel, name.." joined the channel.");
end; end;