DCWatch Echo Script 0.2.0.061007

Post finished Hubside Scripts here, known supporting hubsofts for LUA scripting.

ADCH++ | DCWatch | LUADCH
Post Reply
Toast

DCWatch Echo Script 0.2.0.061007

Post by Toast » 10 Feb 2008, 09:46

Code: Select all

-- DCWatch Lua Engine
-- Echo Script 0.2.0.061007
dcwatch:show( "", "# DCWatch Lua Engine - Echo Script" )

echoEvents = {}

function echoEvents.doMainReceived( hub_id, sender, message )
	local hub = dcwatch:getHubManager():getHubByHost( hub_id )
	local myNick = hub:myNick()
	if ( hub:isConnected() ) and ( myNick ~= sender ) then		
		hub:sendMain( message )
		--hub:sendMain( message .. " ( Echo Script ) ")
	end
end

echoProxy = luajava.createProxy( "org.dccafe.dcwatch.plugins.lua.LuaEventHandlerInterface", echoEvents )
dcwatch:addEventHandler( "Echo Script 0.2.5.061007", echoProxy )

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests