|
Joined: Nov 2004
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Nov 2004
Posts: 8 |
btw, just so you are aware and to keep people HAPPY..have a small script that will strip out the < and > and ; As you said, it's a simple workaround and doesn't address the big picture. As sweede pointed out in an earlier post, there are other situations that also confuse mIRC. If the RFC had been followed, none of these situations would be a problem. I find it really pathetic that the mIRC developers are ignoring the requests of some of their users to fix this bug because "Khaled will have to rejig mirc" or "mirc will have to work harder to process the url". Any feature that is added requires mIRC having to do more work that it already did. Any bug fix requires Khaled to rejig mIRC. That's expected when you develop software.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
I find it really pathetic that the mIRC developers are ignoring the requests of some of their users to fix this bug because "Khaled will have to rejig mirc" or "mirc will have to work harder to process the url". There's no point in mIRC having a scripting language if every feature under the sun is added, for example, this suggestion is easily scriptable: on $^*:hotlink:/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/:*:{ return }
on *:hotlink:*:*:{
.echo -q $regex($1-,/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/)
url -n $regml(1)
} Put the above script in remote (alt+r). To test it: type //echo -a Google: <www.google.com>; www.google.com, and then double click on any of the urls.
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Nov 2004
Posts: 8 |
There's no point in mIRC having a scripting language if every feature under the sun is added I never suggested that they implement every feature under the sun. I am saying that the features they *do* add (one of which is the ability to highlight URLs so the user can just click them) should be implemented properly. How hard is it for people to understand that that's all I'm asking for? There's no reason I should need to work around their buggy implementation of a feature. Period.
|
|
|
|
Joined: Jul 2004
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jul 2004
Posts: 8 |
while this is all good, this isnt the correct solution, or even one that i'd use. something like this
[12:34] <sifu> sweede: Search took 0.520366 seconds:
Restricting Search Scope: <http://search.iowaccess.org/docs/search-scope.html>;
Free Search : Foo Camp: <http://www.nutch.org/blog/2004/09/foo-camp.html>;
RIAA Radar: Search : Foo Fighters:
<http://www.magnetbox.com/riaa/search.asp?searchtype=ArtistSearch&keyword=Foo+Fighters>;
chapters.indigo.ca - Search ' Foo Fighters' > Music: (2 more messages)
MIGHT work a bit better, but it turns the text into a jumble of characters.
<sifu> sweede: http://www.chapters.indigo.ca/default.asp?Ntt=Foo+Fighters&Section=music&Catalog=music&Lang=en&zxac=1
RPM Search foo: http://rpm.pbone.net/index.php3/stat/17/dept/2/idg/foo
Search Foo: http://today.icantfocus.com/blog/archives/entries/search_foo.icf
Everlong Lyrics - Foo Fighters: http://www.lyrics007.com/Foo%20Fighters%20Lyrics/Everlong%20Lyrics.html [fw1-wizards] (1 more message)
Also, that wont work all of the time. mIRC will make URLS like www.example.com clickable Plus you cannot expect the supybot developers to put a note in for their users to put a notice in their IRC channels to include that script to half-ass support a broken feature in their IRC client. trust me, they WONT do it
|
|
|
|
Joined: Jul 2004
Posts: 8
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: Jul 2004
Posts: 8 |
on $^*:hotlink:/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/:*:{ return }
on *:hotlink:*:*:{
.echo -q $regex($1-,/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/)
url -n $regml(1)
} Now, that works great, almost the way mIRC should work anyways. it wont work with any other delimiter though than <> however, that again is just a work around and you will NOT be able to have the supybot devs add this in their notes (at least not without some complaining about mIRC not bothering to fix the problem with a link to this thread or a mirror of the thread)
Last edited by sweede; 19/11/04 06:55 PM.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
It's only a buggy implementation if he planned to implement it according to the rfc in the first place, i'm guessing he just made urls clickable so it's easier than copying and pasting a link to your browser.
New username: hixxy
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Just in case you're interested, I added a dialog which pretty much matches the "Link Warning" dialog on $^*:hotlink:/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/:*:{ return }
on *:hotlink:*:*:{
.echo -q $regex($1-,/((?:https?:\/\/|www2?\.)[^<>\.\s]+(?:\.[^<>\.\s]+)+(?:\/[^<>\.\s]+)*)/)
if (!$hget(url)) { hadd -m url warning 1 }
if ($hget(url,warning)) { dialog -m $+(LinkWarning>,$regml(1)) LinkWarning }
elseif (!$hget(url,warning)) { url -n $regml(1) }
}
dialog LinkWarning {
title "Link Warning"
size -1 -1 151 110
option dbu
icon 1, 2 5 15 15
text "You have clicked on a link that will open the address below using your web browser:", 2, 24 5 127 17
edit "", 3, 23 27 114 10, autohs
text "Be aware that downloading files from websites can be dangerous, since they can contain viruses or trojans which can damage your computer.", 4, 22 41 129 22
text "Are you sure you want to open the above link?", 5, 21 70 114 8
button "Yes", 6, 39 83 37 12
button "No", 7, 79 83 37 12
check "Always &show this warning", 8, 41 99 73 10
}
on *:dialog:LinkWarning>*:*:*:{
if ($devent == init) {
did -g $dname 1 23 $shortfn($mircexe)
did -ra $dname 3 $gettok($dname,2,62)
did -c $dname 8 $hget(url,warning)
}
elseif ($devent == sclick) {
if ($did == 6) { url -n $$did(3).text }
elseif ($did == 7) { dialog -x $dname }
elseif ($did == 8) { hadd -m url warning $did(8).state }
}
}
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Nov 2004
Posts: 8 |
It's only a buggy implementation if he planned to implement it according to the rfc in the first place, i'm guessing he just made urls clickable so it's easier than copying and pasting a link to your browser. No, it's a buggy implementation because URLs aren't properly selected. Just because someone is ignorant of the proper way to do it, doesn't mean that their way wasn't wrong.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Ok, it's a buggy implementation of clickable urls that do abide by the rfc, but it's not a bug unless he intended them to follow the rfc.
In this case, common sense should prevail, and people shouldn't be so lazy (it's not hard to just edit out the ">;" from the url warning box).
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 8
Nutrimatic drinks dispenser
|
Nutrimatic drinks dispenser
Joined: Nov 2004
Posts: 8 |
It doesn't matter if he intended to follow the RFC, dude. mIRC currently incorrectly selects URLs. What was originally written to provide a convenience to the end-user is now putting more work on the end-user. It should be fixed. The correct answer is not to make the user adjust what they are doing because what they are doing is not wrong. Again, if the developers behind mIRC are going to just sit idle and make the users work around the client's bugs, they need a serious beating with the clue bat. The only reason for leaving this bug in mIRC is pure laziness.
|
|
|
|
Joined: Jun 2003
Posts: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
Okay, I think this thread has gone on for long enough. Both sides of the argument have been thoroughly discussed and I don't think anyone else (including myself) needs to login again to find 19 new posts on URL delimiters. If it's a bug Khaled will fix it at some point I'm sure. If not, it's not due to laziness. jamessan: As an FYI, only Khaled develops mIRC, there is not a team of people who fix the bugs. Sure, there are people like you who report bugs or suggest features and the beta testers, but noone except Khaled can fix it. So there is no 'mIRC team' in that respect. Secondly, you've got an opinion on something, the bug has been reported, please don't get so worked up you have to start throwing around accusations of laziness and physical threats Regards,
Mentality/Chris
|
|
|
|
|