egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gconvert.tcl Update Please! :)
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri May 23, 2008 10:08 am    Post subject: Reply with quote

Haw, I told you I had to work nightshift. No need to use that, instead, use this.
Quote:
<speechles> !calc 873247887asdasdasdasd
<sp33chy> Your search - 873247887asdasdasdasd - did not match any documents.
<speechles> !calc fturama
<sp33chy> Did you mean: futurama?
<speechles> !calc 2+2
<sp33chy> 2 + 2 = 4
<speechles> !calc 2+2 + alphabet stew
<sp33chy> Unable to parse anything meaningful.
<speechles> !calc 100 euro + the answer to life, the universe and everything USD in peso
<sp33chy> (100 Euros) + (the answer to life, the universe and everything U.S. dollars) = 2 041.80411 Mexican pesos
<speechles> !calc 2 bushels in pecks
<sp33chy> 2 US bushels = 8 US pecks
Code:
#############################################
#  gconvert.tcl v3.1       by speechles     #
# -Parsers/Encoders from Unofficial google- #
#############################################

##############
# OLD INFO   #
#############################################
#  gconvert.tcl v2.0       by AkiraX        #
#                    <#AnimeFiends@EFNet>   #
#############################################

####### DESCRIPTION #########################
# Uses the google calculator to perform
# conversions and mathematics
#############################################

####### USAGE ###############################
# .chanset #yourchan +gconvert
# !convert <quantity> to <quantity> : perform conversions
# !math [.country.code] <equation> : perform mathematics
# !calc [.country.code] <equation> : perform calculations
# !spell [.country.code] <something> : perform spell checks
#
# all 4 of the above commands are identical, each can perform the
# actions of the other depending on the template detected when
# querying google and receiving html. If you wish to use only 1
# command to do everything, this is 100% possible and you
# can remove any binds you wish above to do so.
#############################################

####### CHANGELOG ###########################
# v3.1 : Adapted script to fit Google's new redesign.
# v3.0 : fixed functionality, added .chanset #yourchan +gconvert
#        added multilanguage, added spell check, added dynamic
#        messages, added custom static messages, removed
#        redundant socket attempts, condensed procedures to
#        one for everything.
# v2.1 : fixed functionality, repaired by Scott Glover
# v2.0 : allow convert code to perform math
# v1.0 : support for google conversions
#############################################

####### LICENSE #############################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, U
#############################################

####### CONFIG #############################

# this is where you can configure default behavior.

# select your default regional google server
# google.* - it can be any valid domain TLD for google.
variable ConvertCountry "com"

# select your default results not found message
variable ConvertMsg1 "Unable to parse anything meaningful."
variable ConvertMsg2 "Found calculator template but cannot parse within."

############################################

package require http

setudef flag gconvert

bind pub -|- !math gconvert:run
bind pub -|- !calc gconvert:run
bind pub -|- !convert gconvert:run
bind pub -|- !spell gconvert:run

proc gconvert:run { nick host handle chan text } {
   if {[lsearch -exact [channel info $chan] +gconvert] == -1} {return}
   set convert(nick) $nick
   set convert(input) $text
      regexp -nocase -- {^\.(.+?)\s(.+?)$} $convert(input) - convert(country) convert(input)
      if {![info exists convert(country)]} {
            set convert(country)  "$::ConvertCountry"
      }

      # create google URL
      set token [http::config -useragent "Lynx/2.8.5rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7e"]
      set convert(url) "http://www.google.$convert(country)/search?q=[gconvert:webstring $convert(input)]&safe=off&btnG=Search&lr=lang_all&num=10"

      # grab the info from google
      catch {set token [http::geturl $convert(url) -timeout 15000]} error
      if {[string match -nocase "*couldn't open socket*" $error]} {
            puthelp "PRIVMSG $chan :Sorry, cannot create a socket to \"$convert(url)\"."
            return 0
      } elseif {[::http::status $token] == "timeout"} {
            puthelp "PRIVMSG $chan :Sorry, your request to \"$convert(url)\" has timed out."
            return 0
      }
      set html [gconvert:clean [http::data $token]]
      http::cleanup $token

      # find the answer
      set convert(answer) ""
      if {[string match "*</div><div id=res class=med>*" $html]==1} {
            if {[regexp -nocase -- {</div><div id=res class=med><p>(.+?)<a href=.*?>(.+?)</a>} $html {} item did_you_mean]} {
         set convert(answer) "${item}${did_you_mean}"
                if {[string match "*<img src=/images/calc_img*" $item] == 1} {
                     regexp -nocase -- {calc_img.+?nowrap.*?>(.+?)</} $item - item
            set convert(answer) "${item}"
                  }
            }
            regexp -- {(.+?)</td></tr>} $convert(answer) -> convert(answer)
            regsub -all -- {<(.+?)>} $convert(answer) "" convert(answer)
      } elseif {[regexp {src=/images/calc_img.gif} $html]} {
            if {[regexp -nocase -- {calc_img.+?nowrap.*?>(.+?)</td></tr>} $html - convert(answer)]} {
                  regexp -- {(.+?)</td></tr>} $convert(answer) -> convert(answer)
            } else {
                  set convert(answer) $::ConvertMsg2
            }
      }

      if { $convert(answer) == "" } {
            if {![regexp -- {</div><div id=res class=med>(?!<)(.+?)<p style} $html - no_search]} {
                  set convert(answer) $::ConvertMsg1
            } else {
                  regexp -- {^(.+?)</td></tr>} $no_search - no_search
                  regsub -- {</a>} $no_search "? " no_search
                  regsub -all -- {<(.+?)>} $no_search { } no_search
                  while {[string match "*  *" $no_search]} {
                        regsub -all -- {  } $no_search " " no_search
                  }
                  set convert(answer) [string trim $no_search]
            }
      }
      puthelp "PRIVMSG $chan :[descdecode $convert(answer)]"
      return 1
}

proc gconvert:clean { input } {
      regsub -all {(?:\t|\n|\r|\v)} $input "" input
      regsub -all "(?:<b>|</b>)" $input "\002" input
      regsub -all "(?:\x91|\x92|')" $input {'} input
      regsub -all "(?:\x93|\x94|&quot;)" $input {"} input
      regsub -all "&nbsp;" $input "" input
      regsub -all "&amp;" $input {\&} input
      regsub -all -nocase {<sup>(.+?)</sup>} $input {^\1} input
      regsub -all -nocase {<font.*?>} $input "" input
      regsub -all -nocase {</font>} $input "" input
      regsub -all -nocase {<span.*?>} $input "" input
      regsub -all -nocase {</span>} $input "" input
      regsub -all -nocase {<input.*?>} $input "" input
      regsub -all -nocase {(?:<i>|</i>)} $input "" input
      return $input
}
   
proc descdecode {text} {
      # code below is neccessary to prevent numerous html markups
      # from appearing in the output (ie, &quot;, ?, etc)
      # stolen (borrowed is a better term) from perplexa's urban
      # dictionary script..
 
      if {![string match *&* $text]} {return $text}
      set escapes {
        &nbsp; \x20 &quot; \x22 &amp; \x26 &apos; \x27 &ndash; \x2D
        &lt; \x3C &gt; \x3E &tilde; \x7E &euro; \x80 &iexcl; \xA1
        &cent; \xA2 &pound; \xA3 &curren; \xA4 &yen; \xA5 &brvbar; \xA6
        &sect; \xA7 &uml; \xA8 &copy; \xA9 &ordf; \xAA &laquo; \xAB
        &not; \xAC &shy; \xAD &reg; \xAE &hibar; \xAF &deg; \xB0
        &plusmn; \xB1 &sup2; \xB2 &sup3; \xB3 &acute; \xB4 &micro; \xB5
        &para; \xB6 &middot; \xB7 &cedil; \xB8 &sup1; \xB9 &ordm; \xBA
        &raquo; \xBB &frac14; \xBC &frac12; \xBD &frac34; \xBE &iquest; \xBF
        &Agrave; \xC0 &Aacute; \xC1 &Acirc; \xC2 &Atilde; \xC3 &Auml; \xC4
        &Aring; \xC5 &AElig; \xC6 &Ccedil; \xC7 &Egrave; \xC8 &Eacute; \xC9
        &Ecirc; \xCA &Euml; \xCB &Igrave; \xCC &Iacute; \xCD &Icirc; \xCE
        &Iuml; \xCF &ETH; \xD0 &Ntilde; \xD1 &Ograve; \xD2 &Oacute; \xD3
        &Ocirc; \xD4 &Otilde; \xD5 &Ouml; \xD6 &times; \xD7 &Oslash; \xD8
        &Ugrave; \xD9 &Uacute; \xDA &Ucirc; \xDB &Uuml; \xDC &Yacute; \xDD
        &THORN; \xDE &szlig; \xDF &agrave; \xE0 &aacute; \xE1 &acirc; \xE2
        &atilde; \xE3 &auml; \xE4 &aring; \xE5 &aelig; \xE6 &ccedil; \xE7
        &egrave; \xE8 &eacute; \xE9 &ecirc; \xEA &euml; \xEB &igrave; \xEC
        &iacute; \xED &icirc; \xEE &iuml; \xEF &eth; \xF0 &ntilde; \xF1
        &ograve; \xF2 &oacute; \xF3 &ocirc; \xF4 &otilde; \xF5 &ouml; \xF6
        &divide; \xF7 &oslash; \xF8 &ugrave; \xF9 &uacute; \xFA &ucirc; \xFB
        &uuml; \xFC &yacute; \xFD &thorn; \xFE &yuml; \xFF
      }
      set text [string map $escapes $text]
      # tcl filter required because we are using SUBST command below
      # this will escape any sequence which could potentially trigger
      # the interpreter..
        regsub -all -- \\\\ $text \\\\\\\\ text
        regsub -all -- \\\[ $text \\\\\[ text
        regsub -all -- \\\] $text \\\\\] text
        regsub -all -- \\\} $text \\\\\} text
        regsub -all -- \\\{ $text \\\\\{ text
        regsub -all -- \\\" $text \\\\\" text
        regsub -all -- \\\$ $text \\\\\$ text
      # end tcl filter
      regsub -all -- {&#([[:digit:]]{1,5});} $text {[format %c [string trimleft "\1" "0"]]} text
      regsub -all -- {&#x([[:xdigit:]]{1,4});} $text {[format %c [scan "\1" %x]]} text
      regsub -all -- {&#?[[:alnum:]]{2,7};} $text "?" text
      return [subst $text]
}

proc gconvert:webstring { input } {
      set url ""
      foreach byte [split [encoding convertto utf-8 $input] ""] {
            scan $byte %c i
            if {$i < 65 || $i > 122} {
                  append url [format %%%02X $i]
            } else {
                  append url $byte
            }
      }
      return [string map {%3A : %2D - %2E . %2F / %30 0 %31 1 %32 2 %33 3 %34 4 %35 5 %36 6 %37 7 %38 8 %39 9 \[ %5B \\ %5C \] %5D \^ %5E \_ %5F \` %60} $url]
}

putlog "gconvert.tcl v3.0 by speechles (based upon v2.0 by AkiraX <#AnimeFiends@EFnet>) loaded!"
Works perfectly......... Cool
this script has transcoding support wrote:
<speechles> !calc 2 + 7 + 99 / 7 *12371267367123
<sp33chy> 2 + 7 + ((99 / 7) * 12 371 267 367 123) = 1.74965067 × 10^14
that other script does not, notice the difference wrote:
<speechles> !calc 2 + 7 + 99 / 7 *12371267367123
<sp33chy> 2 + 7 + ((99 / 7) * 12 371 267 367 123) = 1.74965067 &#215; 10^14

For full support of extended character sets and seamless transcoding, use this not that, kthx Wink

::Edit:: on closer inspection, wow, it does do minimal transcoding.. but is this enough? doubtful... heh
Quote:
set input [string map { {<font size=-2> </font>} {,} } $input]
set input [string map { {&#215;} {x} } $input]
set input [string map { {10<sup>} {10^} } $input]
set input [string map { {</sup>} {} } $input]
Cannot use code tags above, it tries to render the html, using quote with markups injected can show the unrendered html.
Quite mediocre, but then mediocrity might suffice for 80% of the queries, if you want 100% there is a a better way....

Edit: corrected per holycrap's request. now works and has been tested. Smile


Last edited by speechles on Fri Oct 10, 2008 11:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat May 24, 2008 4:18 am    Post subject: Reply with quote

Thanks much!

Very Happy
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Jun 21, 2008 10:04 pm    Post subject: Reply with quote

I like this better.

Code:
#############################################
#  gconvert.tcl v2.0       by AkiraX        #
#                    <#AnimeFiends@EFNet>   #
#############################################

####### DESCRIPTION #########################
# Uses the google calculator to perform
# conversions and mathematics
#############################################

####### USAGE ###############################
# !convert <quantity> to <quantity>
# !math <equation> : perform mathematics
# !calc <equation> : same as !math
#############################################

####### CHANGELOG ###########################
# v2.1 : fixed functionality, repaired by Scott Glover
# v2.0 : allow convert code to perform math
# v1.0 : support for google conversions
#############################################

####### LICENSE #############################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, U
#############################################

package require http

bind pub -|- !convert gconvert:run
proc gconvert:run { nick host handle chan text } {
   set convert(nick) [join [lrange [split $nick] 0 0]]
   set convert(input) [join [lrange [split $text] 0 end]]

   # create google URL
   set token [http::config -useragent "Mozilla"]
   set convert(url) [gconvert:webstring "convert $convert(input)"]
   set convert(url) "http://www.google.com/search?hl=en&q=$convert(url)"

   set num_tries 0
   set try_again 1
   while { $try_again } {
      incr num_tries
      if { $num_tries > 3 } {
         set try_again 0
         break
      }

      # grab the info from google
      set token [http::geturl $convert(url) -timeout 15000]
      upvar #0 $token state
      if { $state(status) == "timeout" } {
         puthelp "PRIVMSG $chan :Sorry, your request timed out."
         return
      }
      set convert(html) [split [http::data $token] "\n"]
      http::cleanup $token

      # find the answer
      set num_lines 0
      set convert(answer) ""
      foreach line $convert(html) {
         incr num_lines
         if { $num_lines > 100 } {
            set try_again 0
            break
         }
         
         # take suggestions
         if { [regexp {Did you mean:} $line] } {
            # grab the new URL and start over
            regexp {Did you mean: </font><a href=(.*?) class=p>} $line match convert(url)
            set convert(url) "http://www.google.com$convert(url)"
            break
         }

         # find the calculator
         if { [regexp {src=/images/calc_img.gif} $line] } {
                        regexp "calc_img.+?nowrap>(.+?)/h" $line - convert(answer)
                        regexp "<b>(.*)</b>" $convert(answer) match convert(answer)
                        set try_again 0
                        break
                  }
      }
   }

   if { $convert(answer) == "" } {
      puthelp "PRIVMSG $chan :Sorry, didn't work out."
      return
   }

   puthelp "PRIVMSG $chan :[gconvert:gstring $convert(answer)]"

   return
}

bind pub -|- !math gconvert:math
bind pub -|- !calc gconvert:math
proc gconvert:math { nick host handle chan text } {
   set calc(nick) [join [lrange [split $nick] 0 0]]
   set calc(input) [join [lrange [split $text] 0 end]]

   # create google URL
   set token [http::config -useragent "Mozilla"]
   set calc(url) [gconvert:webstring "$calc(input)"]
   set calc(url) "http://www.google.com/search?hl=en&q=$calc(url)"

   set num_tries 0
   set try_again 1
   while { $try_again } {
      incr num_tries
      if { $num_tries > 2 } {
         set try_again 0
         break
      }

      # grab the info from google
      set token [http::geturl $calc(url) -timeout 15000]
      upvar #0 $token state
      if { $state(status) == "timeout" } {
         puthelp "PRIVMSG $chan :Sorry, your request timed out."
         return
      }
      set calc(html) [split [http::data $token] "\n"]
      http::cleanup $token

      # find the answer
      set num_lines 0
      set calc(answer) ""
      foreach line $calc(html) {
         incr num_lines
         if { $num_lines > 100 } {
            set try_again 0
            break
         }

         # take suggestions
         if { [regexp {Did you mean:} $line] } {
            # grab the new URL and start over
            regexp {Did you mean: </font><a href=(.*?) class=p>} $line match calc(url)
            set calc(url) "http://www.google.com$calc(url)"
            break
         }

         # find the calculator
         if { [regexp {src=/images/calc_img.gif} $line] } {
                       regexp "calc_img.+?nowrap>(.+?)/h" $line - calc(answer)
                       regexp "<b>(.*)</b>" $calc(answer) match calc(answer)
                       set try_again 0
                       break
                  }
      }
   }

   if { $calc(answer) == "" } {
      puthelp "PRIVMSG $chan :Sorry, didn't work out."
      return
   }

   puthelp "PRIVMSG $chan :[gconvert:gstring $calc(answer)]"

   return
}

proc gconvert:webstring { input } {
   set input [string map { {%} {%25} } $input]
   set input [string map { {&} {&amp;} } $input]
   set input [string map { {*} {%2A} } $input]
   set input [string map { {+} {%2B} } $input]
   set input [string map { {,} {%2C} } $input]
   set input [string map { {-} {%2D} } $input]
   set input [string map { {/} {%2F} } $input]
   set input [string map { {^} {%5E} } $input]
   set input [string map { {<} {&lt;} } $input]
   set input [string map { {>} {&gt;} } $input]
   #set input [string map { {"} {&quot;} } $input]
   set input [string map { {"} {} } $input]
   set input [string map { {'} {'} } $input]
   set input [string map { { } {+} } $input]

   return $input
}

proc gconvert:gstring { input } {
   set input [string map { {<font size=-2> </font>} {,} } $input]
   set input [string map { {×} {x} } $input]
   set input [string map { {10<sup>} {10^} } $input]
   set input [string map { {</sup>} {} } $input]

   return $input
}

putlog "*Google Convert v2.0* Loaded"
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Jun 21, 2008 10:23 pm    Post subject: Reply with quote

holycrap wrote:
I like this better.

Code:
snipped


Haw. You prefer the script correct mispellings and not broadcast them allowing the user to requery. You'd rather the bot just go hey, your wrong, and then query using the 'did you mean' instead? I won't do this. So yeah, your better off using that broken script if thats what you want. I prefer having a spell checker with mine.. Yours will not function this way.
Quote:
<speechles> !spell .it pizzs
<sp33chy> Forse cercavi: pizza?
<speechles> !spell .fr le français Never Surrendr, oui droit
<sp33chy> Essayez avec cette orthographe : le français Never Surrender, oui droit?
<speechles> !spell havign a spll checkr si ncie
<sp33chy> Did you mean: having a spell checker is nice?

Code:
   set convert(nick) [join [lrange [split $nick] 0 0]]
   set convert(input) [join [lrange [split $text] 0 end]]

Basically, those above do nothing. You split the string, lrange it using the same start/end it already had, then join it back together. Basically doing nothing but returning it to what it already was, why?
Code:
   set convert(nick) $nick
   set convert(input) $text

This has the exact same effect as your code above.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sun Jun 22, 2008 7:11 am    Post subject: Reply with quote

Dude, I have no idea what you're asking. I don't know anyting about scripting. I just did what "texke" suggested and it works, so I just use it.

Don't mind my idiocy.

Very Happy
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Jun 22, 2008 11:01 pm    Post subject: Reply with quote

holycrap wrote:
Dude, I have no idea what you're asking. I don't know anyting about scripting. I just did what "texke" suggested and it works, so I just use it.

Don't mind my idiocy.

Very Happy

As long as YOU are happy with the way the script now works holycrap is all that matters. Wink
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Thu Jun 26, 2008 8:21 pm    Post subject: Reply with quote

The script is down again.

Sad
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Jun 26, 2008 10:15 pm    Post subject: Reply with quote

holycrap wrote:
The script is down again.

Sad
Quote:
<speechles> !convert 2+2-7*pi - 3.14159^100
<sp33chy> 2 + 2 - (7 * pi) - (3.14159^100) = -5.18741013 × 10^49
<speechles> !convert fturama
<sp33chy> Did you mean: futurama?
<speechles> !convert 2 pounds + 6 euro + the answer to life, the universe and everything $ in peso
<sp33chy> (2 British pounds) + (6 Euros) + (the answer to life, the universe and everything US$) = 570.020365 Mexican pesos

The one I've posted works indeed. The one you posted depends on the </h2> tag which isn't present anymore all on the same line.
Code:
regexp "calc_img.+?nowrap>(.+?)/h" $line - convert(answer)

Whoever made that line had no idea what they were doing, the reason there is an /h there is because of.. well, because they intended to stop the parsing at </h2> tag. But, since they had no idea what they were doing, they forgot the "<"??! This is why I would rather not touch that script or use any of it's code, it's silly...BTW, the reason it no longer works is that </h2> tag isn't used by google anymore in that spot on that line (and since that script doesn't remove newlines,etc and create one big line of html it fails (it doesnt really fail, what happens is your variable will contain a newline, and any variables with newlines will only be displayed up to that newline everything after it will not). It keeps lines seperate and uses a foreach to step through them.)

Edit: to fix it would require replacing "/h" with "\n" within those "calc_img.+?nowrap" regexp's. This will make the script recognize newline as termination and fulfill the regexp without passing along newlines to the variables. You may get stray html tags this way, but it will work and it's quite easy to adjust the regexp to anticipate them, or conversely construct a cleaning regsub to remove them.
_________________
speechles' eggdrop tcl archive


Last edited by speechles on Fri Jun 27, 2008 10:25 am; edited 5 times in total
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Fri Jun 27, 2008 5:27 am    Post subject: Reply with quote

Thanks speechles, it works like a charm. Smile You're the man! I mean... 'Master'.

.chanset #channel +gconvert

Very Happy
Back to top
View user's profile Send private message
texke
Voice


Joined: 22 May 2008
Posts: 3
Location: Eeklo, Belgium

PostPosted: Tue Jul 01, 2008 3:03 pm    Post subject: Reply with quote

speechles wrote:
Whoever made that line had no idea what they were doing, the reason there is an /h there is because of.. well, because they intended to stop the parsing at </h2> tag. But, since they had no idea what they were doing, they forgot the "<"??! This is why I would rather not touch that script or use any of it's code, it's silly


Sorry mate, just made a temporary solution, and since I have no experience with regex, it was trial and error Sad Razz
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Jul 01, 2008 6:50 pm    Post subject: Reply with quote

texke wrote:
speechles wrote:
Whoever made that line had no idea what they were doing, the reason there is an /h there is because of.. well, because they intended to stop the parsing at </h2> tag. But, since they had no idea what they were doing, they forgot the "<"??! This is why I would rather not touch that script or use any of it's code, it's silly


Sorry mate, just made a temporary solution, and since I have no experience with regex, it was trial and error Sad Razz

The text I used to convey my message wasn't intended to have a mean tone to it. I chose the word silly to reflect that fact. I was only explaining the real difference between the script I posted and the script posted with that fix, that was all. If it was you amending the script to add that fix with no experience, then it certainly makes sense why it appeared like it did. I didn't mean for it to come off as some arrogant cocky statement if thats what it sounded like (it sounds like that to me on rereading Sad).
My apologies back to you sir for misinterpreting things... Embarassed
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
texke
Voice


Joined: 22 May 2008
Posts: 3
Location: Eeklo, Belgium

PostPosted: Wed Jul 02, 2008 10:01 am    Post subject: Reply with quote

Heh, no worries Razz
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Aug 02, 2008 4:10 am    Post subject: Reply with quote

Google changed something again. Script is down. Crying or Very sad
Back to top
View user's profile Send private message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Fri Aug 08, 2008 4:06 am    Post subject: Reply with quote

Can someone fix this? I know you can "speechles". Smile It's ok if you don't have time.

Very Happy
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Fri Aug 08, 2008 2:51 pm    Post subject: Reply with quote

When I get off work tonight I'll get to it Razz
If you use the unofficial google, convert does work within it, so of course I know how to fix it.... Laughing
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber