| View previous topic :: View next topic |
| Author |
Message |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Dec 17, 2007 8:14 am Post subject: |
|
|
| Zircon wrote: | Hi there
Thanks for this very nice script. I added fr:iso8859-1 for french encoding. When i type !wiki montréal, it gives the desired result but with this link at the end : http://fr.wikipedia.org/wiki/Montr%C3%A9al
Are we supponsed to have these characters in the link ? |
Yes, this is perfectly normal. This happens with non-standard characters. You can verify this is correct by visiting the link in a real browser. If it works, and goes there, the script is working correctly.
Wikipedia allows for several redirected links arriving at the same destination. The correct way to arrive is always given as the page title, using this shouldn't produce a [1 redirect(s)] at the end. Using montreal you should see the script verify it was given [1 redirect(s)] and told to visit Montréal instead. In cases where this doesn't happen, you can tell when wikipedians get lazy, aren't correcting most relevant links, and aren't assigning redirects correctlly, but instead directly linking them to relevant pages which causes confusion. |
|
| Back to top |
|
 |
hicks Voice
Joined: 19 Dec 2007 Posts: 9
|
Posted: Wed Dec 19, 2007 5:58 pm Post subject: |
|
|
Many many thanks for the extended upkeep and work on this to all concerned.
I noticed someone mentioned seeing spaces in some !image searches - I'm seeing this too.
e.g.
| Code: |
[21:55] <mynick> !i computar
[21:55] <botname> 36,600 Results | http://www.filmwad.com/fw_images/bb/computar.jpg | http://reliablecctv.com/images/COMPUTAR ZC-L1210EHA 1-4 Inch B-W hi res integrated 2.8-10mm AI lens.jpg | http://reliablecctv.com/images/COMPUTAR ZC-D6026EA Indoor Fixed Dome 1-3 Inch B&W dome 2.6-6mm AI.jpg | http://www.digitalssinc.com/images/dss/TG0812FCS.jpg |
I'm sure these used to be %20'd in earlier versions of this script. If only I had any talent and could look through this code to fix it  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Dec 19, 2007 7:11 pm Post subject: |
|
|
| hicks wrote: | Many many thanks for the extended upkeep and work on this to all concerned.
I noticed someone mentioned seeing spaces in some !image searches - I'm seeing this too.
e.g.
| Code: |
[21:55] <mynick> !i computar
[21:55] <botname> 36,600 Results | http://www.filmwad.com/fw_images/bb/computar.jpg | http://reliablecctv.com/images/COMPUTAR ZC-L1210EHA 1-4 Inch B-W hi res integrated 2.8-10mm AI lens.jpg | http://reliablecctv.com/images/COMPUTAR ZC-D6026EA Indoor Fixed Dome 1-3 Inch B&W dome 2.6-6mm AI.jpg | http://www.digitalssinc.com/images/dss/TG0812FCS.jpg |
I'm sure these used to be %20'd in earlier versions of this script. If only I had any talent and could look through this code to fix it  |
That was an erroneous [urldecode $link] placed where it shouldn't have been. On checking them all over, it appears I only made this mistake in images which has now been corrected. Reget the script and all should work dandy once again.  |
|
| Back to top |
|
 |
mojado Voice
Joined: 19 Dec 2007 Posts: 27
|
Posted: Wed Dec 19, 2007 10:38 pm Post subject: |
|
|
Set this script with:
.chanset #channel +google
But when I try ....
I receive this error in the partyline.
| Code: | | Tcl error [incyth::google::public_message]: can't read "state(status)": no suck variable |
Where is my error??  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Dec 19, 2007 11:38 pm Post subject: |
|
|
| mojado wrote: | Set this script with:
.chanset #channel +google
But when I try ....
I receive this error in the partyline. | I recieve a different error.
| Quote: | <speechles> !google .ar dog
<sp33chy> Socket Error accessing 'http://www.google.ar/search?q=dog&safe=off&btnG=Search&lr=lang_all&num=10' .. Does it exist? | Make sure you have the input/output encoding variables set to 1 for both. Also make sure I've correctly set the encoding for "ar:encoding" in the encode_strings section. As well, if it instead was .com.ar you meant, in the encode_strings section should be added "com.ar:encoding" as well. It is up to the individual to tailor the encode_strings section to fit their needs. You may or may not need to do this if everything appears to display correctly. If things seem odd, you need to adjust your encode_strings section.
The problem that should be happening for some is the url isn't properly encoded into %value's and some higher character values cannot be expressed for some sites without doing this. This will be something to fix when and if people complain of it. It's a known issue for sure.
| mojado wrote: | | Code: | | Tcl error [incyth::google::public_message]: can't read "state(status)": no suck variable |
Where is my error??  | note: when relaying proper error messages, spelling is a big plus. Always try to copy/paste rather than type. INCYTH.. no suck variable.. see the problem?
This error isn't actually an error caused by this script. This is something caused by it's dependency on http.tcl, a tcl provided package. Here is what I am going to suggest to anyone using this script. Instead use my slightly modified http.tcl v2.4.2 which I've mentioned solves the problem with http.tcl generating state(*) errors.
Edit: As a side note to others I've resolved a small issue with the script confusing input/output encode flags.. |
|
| Back to top |
|
 |
hicks Voice
Joined: 19 Dec 2007 Posts: 9
|
Posted: Thu Dec 20, 2007 1:06 pm Post subject: |
|
|
Again, many thanks for the quick fix speechles  |
|
| Back to top |
|
 |
mojado Voice
Joined: 19 Dec 2007 Posts: 27
|
Posted: Fri Dec 21, 2007 8:21 am Post subject: |
|
|
| Howto add more sites torrent to search?? |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Fri Dec 21, 2007 6:19 pm Post subject: |
|
|
| mojado wrote: | | Howto add more sites torrent to search?? |
Um.. discussing the torrent part of this script should not be done using this public forum. Let's pretend it exists, but it's something frowned upon. The main reason we can't talk about it is warez. While it's true torrents host legal files, it has a darker side that is more prevalent making it easy to fall into open discussions about warez, which for here, on this forum is a great big no-no.
So in short, what you will need to do is learn tcl/regexp/regsub for yourself if you wish this done. What I've given you in the script is enough to learn from. I've commented many sections in full detail. Because while it is entirely possible for me to do, its something I don't desire to do, Mininova is enough for me....
Side Note: Found a small problem with extended descriptions while using either of youtube's double lookups (caused by their recent website changes), this has now been corrected. |
|
| Back to top |
|
 |
tripson Voice
Joined: 24 Dec 2007 Posts: 1
|
Posted: Mon Dec 24, 2007 8:06 am Post subject: |
|
|
Hi.
I think there is a bug in this script... when you want to calculate a division (!g 100/5), first of all it shows how many results is on google, then it shows calculated result, and after that it shows couple of google results... with other operations, theres no problem, just with division...
thanks
tripson |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Mon Dec 24, 2007 5:01 pm Post subject: |
|
|
| tripson wrote: | Hi.
I think there is a bug in this script... when you want to calculate a division (!g 100/5), first of all it shows how many results is on google, then it shows calculated result, and after that it shows couple of google results... with other operations, theres no problem, just with division...
thanks
tripson |
None of those you mention are bugs of any sort. This happens because there are more results found than just the 'google calculation answer'. When you !g 100/5 (click here for web based google results), you get exactly what you see on the web given on irc. This is NOT a bug, this is entirely intentional, there is nothing to fix.
Notice when the only result google gives is the 'google calculation answer', only it is given by the script without the total results. This is also NOT a bug, this is entirely intentional, there is nothing to fix.
Remember as well, this is how I've intended it to work for me in channels where I presently idle. If you want ONLY the google calculation answer given whenever they are present, you will need to hack this in yourself as I have no plans to ever do so (this is a google script after all ). I enjoy having the script work exactly (with all the good, the bad and the ugly intact) as google does. I've gone out of my way to tailor sections to fit other users whims, but this part I am dead set against changing.
The reason I'm against it is quite simple. 'Google calculation answers' are interpreted in the same way 'did you mean' are. The script pretty much handles them in the same area allowing them to be inserted as results, rather than given as the only reply (this isn't merely a calculation script, see ). In this way it becomes closer to web based google (the goal), which is the intention (soul) of this script. |
|
| Back to top |
|
 |
Skiv Voice
Joined: 27 Dec 2007 Posts: 5
|
Posted: Thu Dec 27, 2007 7:31 pm Post subject: |
|
|
Hi, I'm using UNOFFICIAL-incith-google-v1.96.tcl, and I have flood protection on in it. 2 queries in 30 seconds, the 3th being ignored.
Now when the ignore fuction starts up, the ppl get ignored for 1 minute, and I think its a little bit too long. Anyway to change it to for example 30 seconds? Please help
Also, is it possible to set a command to display the time left till the ignore fades off? In Incith-google |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Dec 29, 2007 10:36 am Post subject: |
|
|
| Skiv wrote: | | Hi, I'm using UNOFFICIAL-incith-google-v1.96.tcl, |
Why aren't you using v1.97, the current and presently supported version?
| Skiv wrote: | and I have flood protection on in it. 2 queries in 30 seconds, the 3th being ignored.
Now when the ignore fuction starts up, the ppl get ignored for 1 minute, and I think its a little bit too long. Anyway to change it to for example 30 seconds? Please help
Also, is it possible to set a command to display the time left till the ignore fades off? In Incith-google |
Question #1---Anyway to change it to for example 30 seconds?
The problem here is that eggdrop is actually doing the ignoring, all the script is doing is giving it a newignore. Eggdrop can only handle ignores in minutes, so to do seconds you see would require writing an ignore feature for this script. One that would never nor could ever be as fast/friendly/bugfree/etc as the internal eggdrop ignore.
Questions #2--Also, is it possible to set a command to display the time left till the ignore fades off?
To list how long the offender is ignored allows them to continue to offend. Think as well, since they are ignored already how will the bot see them? Letting another user be capable of displaying their ignore time remaining for them leads to serious problems. Ignored users will start bugging other users to spam commands for them to see their remaining ignore time.
For both these types of issues it seems foolish for me to even begin to consider this a problem with the script...  |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Jan 01, 2008 2:54 pm Post subject: |
|
|
Happy new year everyone...
Applied a few fixes to some longstanding issues in wikipedia/wikimedia portions, which now eliminates the need (hopefully *fingers crossed*) to use stripcodes tcl command. This should make it more compatible with tcl versions. It has made it possible as well to allow in-description bolding which before wasn't possible. Below are a few examples of how this looks with wikimedia. A : colon starting a line signifies its starting at a #subtag. I've also corrected the way in which tags are disregarded. The script was only to discard [edit] type tags or [1] [2] type reference tags, but turns out was in fact discarding anything found between brackets. This is fully addressed now and done correctly.
| Quote: | <speechles> !wm .en.wikiquote.org futurama#godfellas
<sp33chy> Futurama | : Godfellas Bender: Oh cruel fate, to be thusly boned. Ask not for whom the bone bones, it bones for thee. Bender: You know, I was God once. God: Yes, I saw. You were doing well until everyone died. God: Bender, being God isn't easy. If you do too much, people get dependent on you, and if you do nothing, they lose hope. You have to use a light touch. Like a safecracker, or a pickpocket. Bender:
<sp33chy> Or a guy who burns down a bar for the insurance money! God: Yes, if you make it look like an electrical thing. When you do things right, people won't be sure you've done anything at all. @ http://en.wikiquote.org/wiki/Futurama#Godfellas [2 Redirect(s)]
<speechles> !wm .wiki.hellowafflezone.com xbox softmodding
<sp33chy> Xbox softmodding | ALWAYS HAVE A BACKUP OF YOUR EEPROM on your computer and/or a burned disk in a safe place if your Xbox is modded! MAKE NO EXCEPTIONS!! The EEPROM can be essential to recovering from software or hard drive failure. @ http://wiki.hellowafflezone.com/Xbox_softmodding |
Here is the current script, v1.97 or find it at any v1.97 link found above.
Note: The config variable bold_descriptions must be set to 1 for the bold effect to work. |
|
| Back to top |
|
 |
pobunjeni Voice
Joined: 12 Aug 2007 Posts: 5
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Jan 10, 2008 2:08 pm Post subject: |
|
|
It already does this...see quote below |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|