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-19 20:08:33 -02:00
parent 20490d746a
commit 6fcef72fc5
4 changed files with 66 additions and 56 deletions

View File

@ -9,6 +9,3 @@ rm -fr "$destdir";
echo cp -fr Build/irc "\"$destdir\"";
cp -fr Build/irc "$destdir";
echo cp -f dists/* ~/Dropbox/Public/;
cp -f dists/* ~/Dropbox/Public/;

12
etc/publish.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/sh
# ONLY FOR MAINTAINER USE!!
cd "`dirname "$0"`";
dir="`pwd`";
cd ..;
"$dir/zipmod.sh";
echo cp -f dists/* ~/Dropbox/Public/;
cp -f dists/* ~/Dropbox/Public/;

BIN
screenshot_2984190360.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 KiB

View File

@ -85,9 +85,12 @@ end
minetest.register_on_joinplayer(function ( player )
irc.say(mt_irc.channel, "*** "..player:get_player_name().." joined the game");
end);
irc.register_callback("connect", function ( )
irc.join(mt_irc.channel);
irc.say(mt_irc.channel, "*** "..player:get_player_name().." joined the game");
for _,player in ipairs(minetest.get_connected_players()) do
mt_irc.connected_players[player:get_player_name()] = mt_irc.connect_on_join;
end
@ -140,8 +143,6 @@ minetest.register_on_joinplayer(function ( player )
if (not mt_irc.connect_ok) then return; end
end);
end);
minetest.register_on_leaveplayer(function ( player )
local name = player:get_player_name();
mt_irc.connected_players[name] = false;