READ THE RULES
0 Members and 2 Guests are viewing this topic.
dcpp:setListener( "pm", "releases", function( hub, user, text ) local s = string.lower( text ) d,e,cmd,typ,tune = string.find(s, "^(%S+)%s*(%S*)%s*(.*)") if cmd == cmd2 then if typ == "" then SendPMMsg( hub, user, MsgAll ) --user:sendPrivMsgFmtNoWin( MsgAll ) return 1 elseif typ == "new" then SendPMMsg( hub, user, MsgNew ) --user:sendPrivMsgFmtNoWin( MsgNew ) return 1 elseif Types[typ] then SendPMMsg( hub, user, ShowRelType(typ) ) --user:sendPrivMsgFmtNoWin( MsgType ) return 1 end elseif cmd == cmd4 then SendPMMsg( hub, user, MsgNew ) --user:sendPrivMsgFmtNoWin( MsgNew ) return 1 elseif cmd == cmd1 then if tune ~= "" and Types[typ] then SendPMMsg( hub, user, AddRel(user, tune, typ) ) --user:sendPrivMsgFmtNoWin( AddRel(user, tune, typ) ) elseif Types[typ] == nil then SendPMMsg( hub, user, "I need to know the catagory to add it to!" ) --user:sendPrivMsgFmtNoWin( "I need to know the catagory to add it to!" ) else SendPMMsg( hub, user, "yea right, like i know what you got 2 add when you don't tell me!" ) --user:sendPrivMsgFmtNoWin( "yea right, like i know what you got 2 add when you don't tell me!" ) end return 1 elseif user:isOp() then if cmd == cmd3 then if typ ~= "" then SendPMMsg( hub, user, DelRel(user, typ) ) --user:sendPrivMsgFmtNoWin( DelRel(user, typ) ) else SendPMMsg( hub, user, "yea right, like i know what i got 2 delete when you don't tell me!" ) --user:sendPrivMsgFmtNoWin( "yea right, like i know what i got 2 delete when you don't tell me!" ) end return 1 elseif cmd == cmd5 then ReloadRel() SendPMMsg( hub, user, "Albums reloaded!" ) --user:sendPrivMsgFmtNoWin( "Albums reloaded!" ) return 1 end return 1 -- make bcdc++ forget the original message end end)
Originally posted by Sarpanch could u plz paste what you have got? as what ive got doesnt seem 2 work