botname = "{C2TM}?"
function DataArrival(curUser, data)
if (strsub(data, 1, 1) == "<") then
data = strsub(data, 1, strlen(data)-1)
s,e,cmd,msg = strfind( data, "%b<>%s+(%S+)%s+(.*)")
if(cmd == "+banner") then
if msg then
local line = "\t\t"..strrep("--", strlen(msg)).."\r\n" -- about that
SendToAll(botname, "\r\n\r\n"..line..line.."\t\t- "..msg.." -\r\n"..line..line.."\r\n");
end
end
end
end
can smebody chnge this a bit so only an operator can use this function.??
can sme1 reply plz... :(
Here try this one...
botname = "{C2TM}?"
function DataArrival(curUser, data)
if (strsub(data, 1, 1) == "<") then
data = strsub(data, 1, strlen(data)-1)
s,e,cmd,msg = strfind( data, "%b<>%s+(%S+)%s+(.*)")
if(cmd == "+banner") and curUser.bOperator then
if msg then
local line = "\t\t"..strrep("--", strlen(msg)).."\r\n" -- about that
SendToAll(botname, "\r\n\r\n"..line..line.."\t\t- "..msg.." -\r\n"..line..line.."\r\n");
end
end
end
end
/NightLitch
thanks!!
NP m8...