The users on the hub don't see if an user connects to hub via XMPP.
I created a Lua script for fixing this problem:
--[[
Copyright (C) 2008-2009 Viktor Balazs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]--
join = {}
function join.dataReceived( data )
result = false
if data:getSource() ~= nil then
irrHub = kleodora:getService( "adcs://dcwatch.hu:29673" )
if irrHub ~= nil then
if data:getType() == "user.connected" then
irrHub:sendMessage( "Joins: " .. data:getValue():getName() )
elseif data:getType() == "user.disconnected" then
irrHub:sendMessage( "Parts: " .. data:getValue():getName() )
end
end
end
return result
end
joinProxy = luajava.createProxy( "hu.dcwatch.common.service.ServiceListener", join )
kleodora:addListener( "join.lua", joinProxy )
Recent comments
2 years 23 weeks ago