Hi, please convert to lua 5 thank
--[[
Client-side version 1.1a by jiten (4/10/2006)
Added: Hubname in the message - requested by Toobster?? (3/10/2006)
Added: Ignore table - requested by Toobster??;
Changed: Report is sent to PM - Toobster?? (4/10/2006).
Owner-Messenger-Bot made by Toobster?? 04/01/06
Filters mainchat for users calling your Nick
Then PM's the user from your Nick asking them to leave you a Message
Once they reply you get their pm
Also Bot PM's you telling you they called your nick in Mainchat
Like my script ? Then Plz help support my hub @ geordieland.no-ip.info
]]--
sBot = "Owner-Messenger" -- name of bot that will message you
-- Insert your trigger nicks below (lower-case)
tNicks = { ["toobster??"] = 1, ["toob"] = 1, ["toobster"] = 1, ["tooby"] = 1, ["hubowner?"] = 1, }
-- Insert nicks you want to Ignore, such as Bots (lower-case)
tIgnore = { ["quiz-aster"] = 1, ["bot1"] = 1, }
dcpp:setListener( "chat", "ownermessenger",
function( hub, user, msg )
if hub:getOwnNick() ~= user:getNick() then
if not tIgnore[string.lower(user:getNick())] then
local msg = string.lower(msg)
for v in string.gfind(msg,"(%S+)") do
if tNicks[string.lower(v)] then
local sHubName = string.gsub(hub:getHubName(),"%s(%-.*)","")
hub:sendPrivMsgTo(user:getNick(),"<"..hub:getOwnNick()..
"> THIS IS AN AUTO RESPONSE MESSAGE \r\n\r\n I have been informed you are calling "..
"for me in mainchat, please leave a message for me here in pm and I will reply A.S.A.P.\r\n"..
"\r\n Your mainchat message was: " ..msg,0)
hub:injectPrivMsg(user:getNick(),hub:getOwnNick(),"<"..sBot.."> "..user:getNick()..
" is calling for you in mainchat in "..sHubName.." : "..msg)
end
end
end
end
end
)
DC():PrintDebug( "*** Loaded OwnerMessenger.lua ***" )
This is a client-side script and its in lua 5...there is a hub-side script too.