This script has a major security flaw in the !w register command that leaves anyone running this open to possible attacks. Im not going into public detail about what is wrong with it so that this wont become a widely known flaw. the author can contact me for a better explanation, The exploit was tested several times on several different users and it does infact work
major update posted. bugs fixed and completely redone the code :)
@ MakiMaki First let me say thank you for posting the no vars version i love it and it works great. But your regex was a bit flawed as it would catch: OAAAAAAAAAA in: http://www.youtube.com/watch?feature=g-logo&v=BqMIGC1tx3s&context=G2747d50FOAAAAAAAAAA
the new regex corrects this :)
TY to everyones post. still waiting to see someone come up with a better way to do the $replace tho :D
Nice guys thank you all for your suggestions. i will test and implement the changes today.
@ ProIcons i only seperated it out as the pm one isnt really for a bot you can put it into your personal remotes and use it to grab urls pm'd to you. but yes combining them is doable.
@MakiMaki ty for the new regex lines. Im fairly new at using regex , als youtube has been messing with the url formating so all i want to grab is whats after v= no matter where it is in the url. if that regex does it ( at the time of writing this i havent tested) then sweet ill use it.
As for the replace line i couldnt think of a better/simpler way to do it and i tried to do just one and it threw out error's on me and i couldnt get it to work so i just did multiples. ty for showing me how to use just one :)
thanks guys for the feedback its much appreciated.
@ napa182 yea i suppose it could be either or. i usually have a playlist going in the background of music so technically im not watching it. And yes this is a differant script that i adapted to show only youtube info. it was originally a generalized webpage Title getter for irc, it would be used to get the page title for any page u were viewing.
@ sunslayer ty for the regex line i will try to incorporate it into the next version.
@ henbone11 ive noticed an error on some of the newer pages of youtube where it is returning an error. yes they have made some site changes so im going to have to take a look at it again to see what can be done. there is also an error if the title has parentese in it eg: limp bizkit - "break stuff" it wont return a result. i will try and fix all of this in the next version