--//[BCDC.4032][PM From Favs 1.1] by ßottledHatê --//Only get "pm's" from users on list... all other pm's show up un the main. --//might include this into a larger script down the line. this one only works in .4032.. to make it work in previous.. remove the "user:getIp()" pmTable = {} local start = 0 for line in io.lines("Favorites.xml") do if string.find(line, "") then start = 0 end if start ==1 then local s,e,favnick = string.find(line, "") then start = 1 end end --for k,v in pmTable do --DC():PrintDebug(k) --end dcpp:setListener( "pm", "pmlistener", function( hub, user, text ) if pmTable[user:getNick()] then return else hub:injectChat("Private Message From: "..user:getNick().." "..user:getIp().."\r\n<"..user:getNick().."> "..text.."\r\n") --//for use in versions previous to .4032 remove: ..user:getIp() return 1 end end ) DC():PrintDebug("PM From Fav's 1.1") --//[BCDC.4032][PM From Favs 1.1] by ßottledHatê