PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: Snoris on 09 December, 2003, 08:00:00

Title: Annoying away msg
Post by: Snoris on 09 December, 2003, 08:00:00
Found this....Think its skroolster who did the orginal but that version was a little bigger than this =))
Anyway...It removes those annoying away msg in the OPchat,,,

I hope there is no one like this out there...=]
OpChat = frmHub:GetOpChatName()

function DataArrival(curUser, sData)
if strsub(sData, 1, 4) == "$To:" then
_,_,whoto,whofrom,message = strfind(sData, "%$To:%s(%S+)%sFrom:%s(%S+)%s%$%b<>%s(.*)")
if whoto == OpChat then
if curUser.bOperator then
local _,_,isaway = strfind(message, ".*(%b<>)|$")
if isaway ~= nil then
return 1
end
end
end
end
end

*EDIT*
Did I tell u this.....


It works =]
Title:
Post by: EuroBoy on 09 December, 2003, 10:29:46
Why dont they just use the "dont send away messages to bots" function in DC++ ? :rolleyes:
Title:
Post by: MrBuitenhuizenJunior on 09 December, 2003, 12:01:36
Yes...

Thanks for posting this script!



[NL]MrBuitenhuizen
Title:
Post by: IceCoder on 09 December, 2003, 14:05:16
it's not that annoying  :]
Title:
Post by: SaintSinner on 09 December, 2003, 14:18:43
no its very annoying
im going to use it.