AHA, I see now exactly what is causing it, thanks. This is how all group replies should look nowgencha wrote:This was my groups request:I'll install your fix and see what it does for me.19:02:11 <@gencha> !groups titan
19:02:15 <@TTB005> 8,130 Results | kern/37299: Contribution: Support for so @ http://groups.google.com/group/muc.list ... 6c9daff3aa | <tr><td> Features teen titan porn tee @ http://groups.google.com/group/gg3-myle ... porn">Teen Titan Porn</a> <nobr>Group: <a href="/group/gg3-mylexus-5 | Titan - Tactics @
19:02:16 <@TTB005> http://groups.google.com/group/rec.game ... d705b5259d
Thanks for the quick reply
Groups now uses double lookups (google groups/usenet groups) to ensure accuracy. Get it Here again or any v1.96 link above.. have a funsample from irc wrote:<speechles> !groups titan
<sp33chy> 8,140 Results | Titan????????? @ http://groups.google.com/group/ktfs-member | ?? ????? @ http://groups.google.com/group/fc-titan | kern/37299: Contribution: Support for so @ http://groups.google.com/group/muc.list ... 6c9daff3aa
<speechles> !groups marijuana
<sp33chy> 8,660 Results | rec.drugs.cannabis @ http://groups.google.com/group/rec.drugs.cannabis | alt.politics.marijuana @ http://groups.google.com/group/alt.politics.marijuana | Swiss study has some surprises on marij @ http://groups.google.com/group/uk.rec.d ... 2e685f7764
<speechles> !groups .nl marihuana
<sp33chy> 2.100 Resultaten | reggae,raggamuffin(halldance),hip-hop co @ http://groups.google.nl/group/rastapan | Marihuana... @ http://groups.google.nl/group/pl.sci.me ... d88fda1813 | Marihuana... @ http://groups.google.nl/group/pl.sci.me ... d88fda1813
<speechles> !groups works now perfectly
<sp33chy> 36,400 Results | xbox 360 wireless connection fails after @ http://groups.google.com/group/xbox-360 ... ter-update | Did the WTC attack ruin a perfectly go @ http://groups.google.com/group/rec.arts ... 2434f1ec45 | More deserved MUD for vista... @
<sp33chy> http://groups.google.com/group/microsof ... 4b70bf9add
Astur wrote:Is there the possibility to disable some modules? I don't need all of this stuff.
I just need google search, google image search, youtube, locate and wikipedia.
I didn't found anything to disable the other stuff and tried to delete it, but the script was no longer working after that ^^ (I'm new to tcl and eggdrops, so).
Can anyone help me?
Code: Select all
# number of search results/image links to return, 'define:' is always 1 as some defs are huge
variable search_results 4
variable image_results 4
variable local_results 4
variable group_results 3
variable news_results 3
variable print_results 3
variable video_results 4
variable youtube_results 5
variable locate_results 1
variable gamespot_results 3
variable trans_results 1
variable daily_results 4
variable gamefaq_results 20
variable blog_results 3
variable ebay_results 3
variable popular_results 10
variable rev_results 1
variable wiki_results 1
variable wikimedia_results 1
variable recent_results 10
variable mininova_results 3
variable ign_results 3
variable myspacevids_results 3
variable trends_results 20
I'll look into this shortly, it's easily fixed as the script already has a urlencode function that should be correcting links such as this. I'll take a peek and see if I can stumble upon a flaw.gensha wrote:What i encountered quite often is that urls (especially images) are displayed with spaces.
Having them replaced with %20 would be great.
This is the debut version of eggdrop that supports stripcodes. Eggdrop 1.6.18 also supports it. The stripcodes is only used by wikipedia/wikimedia. Because wikipedia/wikimedia isn't presently capable of establishing proper character encodings 100%, stripcodes is needed to keep problematic characters from triggering colors,bold,underline,etc... As soon as I complete wikipedia/wikimedia it will properly support encodings correctly and these stripcodes will be irrelevant and removed. Meantime, you can be safely edit the stripcodes out if you don't wish to upgrade (albeit with the possible strange bolding, coloring, underlining of wiki results in some languages)..QQleQ wrote:Tcl error [incith::google::public_message]: invalid command name "stripcodes"
I also have that, while i am running tcl 8.4 and the right eggdrop version..
It sounds like a bandwidth problem to me, as that error only happens when a bandwidth shortage occurs. With wikipedia/wikimedia there are three possible page loads that can occur and only the first checks for socket/timeout errors. Only the first check is made because the bot is under the assumption it will have acceptable bandwidth to load these additional pages afterwards. The error detection is for the most part just to catch bad user input, as only the 1st page load is from user input. The bot itself then decides which links to traverse/display based off results in that 1st page and is why the assumption is made.QQleQ wrote:The whole wikipedia search makes it hang like crazy..
every now and than, especially when wiki requests are flooded it goes:
TCL error [incith::google::public_message]: couldn't open socket: host is unreachable
and does that for every line (takes a minute between 2 requests)
and eventually makes the eggdrop jump servers or ping timeout.
Sometimes the wikipedia search works just fine.
Code: Select all
# amount of lines you want your wiki* results to span, the more lines the more
# of the wiki article or section you will see, some get cut short if so raise this.
# this affects both wikipedia and wikimedia results.
#
variable wiki_lines 2
...snipped older parts not relevant...
# enable encoding conversion, set this to 1 to enable.
# with this enabled it will follow the format of encoding conversions listed
# below. these will affect both input and output and will follow country switch.
#
variable encoding_conversion_input 1
variable encoding_conversion_output 1
# encoding conversion lookups
# here is where you can correct language encoding problems by pointing their
# abbreviation towards an encoding. if you want more, feel free to add more.
# this is a somewhat poor example below, there are possibly hundreds of additions
# that need to be added to this section. enjoy and merry christmas ;P
#
variable encode_strings {
en:utf-8
com:utf-8
sr:iso8859-5
ru:cp1251
ar:iso8859-6
}
Code: Select all
# this is my input encoding hack, this will convert input before it goes
# out to be queried.
if {$incith::google::encoding_conversion_input > 0 && $country != ""} {
set encoding_found [lindex [split [lindex $incith::google::encode_strings [lsearch -glob $incith::google::encode_strings "$country:*"]] :] 1]
if {$encoding_found != "" && [lsearch -exact [encoding names] $encoding_found] != -1} {
set input [encoding convertfrom $encoding_found $input]
}
}
...snipped out query building/fetch html routines here...
# this is the output encoding hack.
if {$incith::google::encoding_conversion_output > 0} {
set encoding_found [lindex [split [lindex $incith::google::encode_strings [lsearch -glob $incith::google::encode_strings "$country:*"]] :] 1]
if {$encoding_found != "" && [lsearch -exact [encoding names] $encoding_found] != -1} {
set input [encoding convertto $encoding_found $input]
}
}