<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/8988" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-03-05T17:42:15-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/8988</id>

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-03-05T17:42:15-04:00</updated>

		<published>2005-03-05T17:42:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47204#p47204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47204#p47204"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47204#p47204"><![CDATA[
You need to enclose within quotes. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>!imdb 'Snow Dogs'</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Mar 05, 2005 5:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ctatay]]></name></author>
		<updated>2005-03-05T13:30:10-04:00</updated>

		<published>2005-03-05T13:30:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47186#p47186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47186#p47186"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47186#p47186"><![CDATA[
dont feel bad, on !imdb Friday it will work but on !imdb Snow Dogs it gives me the same error. Ive tried everything as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6036">ctatay</a> — Sat Mar 05, 2005 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-02-27T13:29:57-04:00</updated>

		<published>2005-02-27T13:29:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47009#p47009</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47009#p47009"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47009#p47009"><![CDATA[
hm, i read it and i have downloaded B0unTy's "working" script<br>but i get<br><blockquote class="uncited"><div>[18:01] Tcl error [imdb_proc]: can't read "location": no such variable</div></blockquote>when i using !imdb &lt;movie&gt;<br><br>And in imdb.tcl<br><div class="codebox"><p>Code: </p><pre><code># set IMDB_ALTERNATIVE 0 = use the internal tcl http 2.3 package# set IMDB_ALTERNATIVE 1 = use the external curl 6.0+set IMDB_ALTERNATIVE 1# set here the location path where find curl 6.0+set binary(CURL) "C:/Jul/bot/scripts/imdb/"</code></pre></div>And then regxp fix...<br><div class="codebox"><p>Code: </p><pre><code>proc imdb_proc { nick uhost handle chan arg } {   global IMDB_DEBUG pub_or_not announce random binary IMDB_ALTERNATIVE   set arg [string map {\\ \\\\ \" \\\" \' \\\' \{ \\\{ \} \\\} \[ \\\[ \] \\\] \( \\\( \) \\\)} $arg]   # channel_check permission</code></pre></div>What shall i do? I feel stupid to ask this but i can't find anything in the fourm who can help me right now....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5711">FuE-</a> — Sun Feb 27, 2005 1:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-02-26T13:16:05-04:00</updated>

		<published>2005-02-26T13:16:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46965#p46965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46965#p46965"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46965#p46965"><![CDATA[
and now suddely i cant dcc chat to my bot he not respond on any dcc cheat request and when i start the bot with cmd. then i see to accept dcc chat with FuE- do /dccanswer FuE- .... can you help me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5711">FuE-</a> — Sat Feb 26, 2005 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-26T08:05:35-04:00</updated>

		<published>2005-02-26T08:05:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46957#p46957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46957#p46957"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46957#p46957"><![CDATA[
Paste the error, and also try <strong class="text-strong">.tcl set errorInfo</strong> in DCC to check where is the script choking.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Feb 26, 2005 8:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-02-26T04:15:39-04:00</updated>

		<published>2005-02-26T04:15:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46933#p46933</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46933#p46933"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46933#p46933"><![CDATA[
? maybe paste it ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Feb 26, 2005 4:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FuE-]]></name></author>
		<updated>2005-02-25T20:21:55-04:00</updated>

		<published>2005-02-25T20:21:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46924#p46924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46924#p46924"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46924#p46924"><![CDATA[
my boy die when i do !imdb and it say in partyline something about debug, bugg report bug...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5711">FuE-</a> — Fri Feb 25, 2005 8:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-02-08T17:23:40-04:00</updated>

		<published>2005-02-08T17:23:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46421#p46421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46421#p46421"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46421#p46421"><![CDATA[
You will find a fully functional IMDB script <a href="http://www.ballarat.us/downloads/imdb.tcl" class="postlink">here</a>.<div class="codebox"><p>Code: </p><pre><code>.chanset #channel +imdb</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Feb 08, 2005 5:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blas]]></name></author>
		<updated>2005-02-08T17:17:54-04:00</updated>

		<published>2005-02-08T17:17:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46418#p46418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46418#p46418"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46418#p46418"><![CDATA[
hi<br>my code is:<br><br>############################################################<br>##     This iMDB.tcl requires Eggdrop1.6.0 or higher      ##<br>##                  (c) 2003 by B0unTy                    ##<br>############################################################<br>##                                                        ##<br>## INSTALL:                                               ##<br>## ========                                               ##<br>##   1- Copy iMDB.tcl in your dir scripts/                ##<br>##   2- Add iMDB.tcl in your eggdrop.conf:                ##<br>##        source scripts/imdb.tcl                         ##<br>##                                                        ##<br>##   For each channel you want users to use !imdb cmd     ##<br>##   Just type in partyline: .chanset #channel +imdb      ##<br>##                                                        ##<br>############################################################<br># COOKIES ARE :<br># =============<br># TITLE                 = %title        |       BOLD            = %bold<br># URL                   = %url          |       UNDERLINE       = %uline<br># DIRECTOR              = %name         |       COLORS          = %color#,#<br># GENRE                 = %genre        |       NEW LINE        = \n<br># SYNOPSIS              = %plot         |-----------------------------<br># RATING                = %rating       |       !! to reset color code !!<br># VOTES                 = %votes        |       !! use %color w/o args !!<br># RUNTIME               = %time         |<br># BUDGET                = %budget       |<br># SCREENS               = %screens      |<br># TAGLINE               = %tagline      |<br># MPAA                  = %mpaa         |<br># COUNTRY               = %country      |<br># LANGUAGE              = %language     |<br># SOUND MIX             = %soundmix     |<br># TOP 250               = %top250       |<br>#<br># RANDOMIZING OUTPUT :<br># ====================<br># Exemple:<br>#  set random(IMDBIRC-0)       "IMDB info for %bold%title%bold Directed by %name"<br>#  set random(IMDBIRC-1)       "IMDB info for %title Directed by %bold%name%bold"<br>#  set random(IMDBIRC-2)       "IMDB info for %title Directed by %name"<br># TYPE --------^   ^<br>#       ID --------^<br>#<br>#  set announce(IMDBIRC) "random 3"<br># TYPE ---------^        ^    ^<br>#       RANDOM ----------^    ^<br>#           # OF IDS ---------^<br>#<br># exemple random announces:<br># set announce(IMDBIRC) "random 3"<br># set random(IMDBIRC-0) "IMDB info for %bold%title%bold Directed by %name -&gt; rated %uline%rating%uline (%votes votes) - genre:<br> %genre - runtime: %time mins &gt;&gt; URL: %uline%url%uline &gt;&gt; Budget: %budget &gt;&gt; Screens: (USA) %screens"<br># set random(IMDBIRC-1) "TITLE: %bold%title%bold - DIRECTOR: %name - RATE: %rating by %votes users - GENRE: %genre - RUNTIME:<br>%time mins - URL: %url - BUDGET: %budget - SCREENS: (USA) %screens"<br># set random(IMDBIRC-2) "%bold%title%bold - %url\n%boldDirected by:%bold %name\n%boldGenre:%bold %genre\n%boldTagline:%bold %t<br>agline\n%boldSynopsis:%bold %plot\n%boldRating:%bold %rating (%votes votes) top 250:%bold%top250%bold\n%boldMPAA:%bold %mpaa\n<br>%boldRuntime:%bold %time mins.\n%boldCountry:%bold %country\n%boldLanguage:%bold %language\n%boldSound Mix:%bold %soundmix\n%b<br>oldBudget:%bold %budget \n%boldOpening Weekend:%bold (USA) %screens"<br><br># exemple normal announce:<br>set announce(IMDBIRC) "%bold%title%bold - %url\n%boldDirected by:%bold %name\n%boldGenre:%bold %genre\n%boldTagline:%bold %tag<br>line\n%boldSynopsis:%bold %plot\n%boldRating:%bold %rating (%votes votes) top 250:%bold%top250%bold\n%boldMPAA:%bold %mpaa\n%b<br>oldRuntime:%bold %time mins.\n%boldCountry:%bold %country\n%boldLanguage:%bold %language\n%boldSound Mix:%bold %soundmix\n%bol<br>dBudget:%bold %budget \n%boldOpening Weekend:%bold (USA) %screens"<br><br># for a channel !imdb request<br># set to 1 = all results will be sent publicly to the channel<br># set to 0 = all results will be sent as private notice<br>set pub_or_not 1<br><br># use or not the imdb debugger (1=enable debug  0=disable debug)<br>set IMDB_DEBUG 0<br><br># set IMDB_ALTERNATIVE 0 = use the internal tcl http 2.3 package<br># set IMDB_ALTERNATIVE 1 = use the external curl 6.0+<br>set IMDB_ALTERNATIVE 1<br><br># set here the location path where find curl 6.0+<br>set binary(CURL) ""<br><br>#################################################################<br># DO NOT MODIFY BELOW HERE UNLESS YOU KNOW WHAT YOU ARE DOING!  #<br>#################################################################<br>if { $IMDB_ALTERNATIVE == 0 } { package require http 2.3 }<br>setudef flag imdb<br>bind pub -|- !imdb imdb_proc<br><br>proc htmlcodes {tempfile} {<br>        set mapfile [string map {" ' &amp; &amp; [ ( \ / ] ) { ( } ) £ Ł ¨ ¨ © Š « Ť &amp;#1<br>73; ­ ® Ž } $tempfile]<br>        set mapfile [string map {´ ´ · ˇ ¹ š » ť ¼ ź ½ ˝ ¾ ž À Ŕ Á Á Â Â } $mapfile]<br>        set mapfile [string map {Ã Ă Ä Ä Å Ĺ Æ Ć Ç Ç È Č É É Ê Ę Ë Ë Ì Ě Í Í &amp;#206<br>; Î Ï Ď Ð Đ Ñ Ń Ò Ň Ó Ó Ô Ô Õ Ő Ö Ö } $mapfile]<br>        set mapfile [string map {× × Ø Ř Ù Ů Ú Ú Û Ű Ü Ü Ý Ý Þ Ţ ß ß à ŕ á á &amp;#226<br>; â ã ă ä ä å ĺ æ ć ç ç è č é é ê ę } $mapfile]<br>        set mapfile [string map {ë ë ì ě í í î î ï ď ð đ ñ ń ò ň ó ó ô ô õ ő &amp;#246<br>; ö ÷ ÷ ø ř ù ů ú ú û ű ü ü ý ý þ ţ } $mapfile]<br>        return $mapfile<br>}<br><br>proc channel_check { chan } {<br>        foreach setting [channel info $chan] {<br>                if {[regexp -- {^[\+-]} $setting]} {<br>                        if {![string compare "+imdb" $setting]} {<br>                                set permission 1<br>                                break<br>                        } else {<br>                                set permission 0<br>                        }<br>                }<br>        }<br>        return $permission<br>}<br><br>proc replacevar {strin what withwhat} {<br>        set output $strin<br>        set replacement $withwhat<br>        set cutpos 0<br>        while { [string first $what $output] != -1 } {<br>                set cutstart [expr [string first $what $output] - 1]<br>                set cutstop  [expr $cutstart + [string length $what] + 1]<br>                set output [string range $output 0 $cutstart]$replacement[string range $output $cutstop end]<br>        }<br>        return $output<br>}<br><br>proc imdb_proc { nick uhost handle chan arg } {<br>        global IMDB_DEBUG pub_or_not announce random binary IMDB_ALTERNATIVE<br>        set arg [string map {\\ \\\\ \" \\\" \' \\\' \{ \\\{ \} \\\} \[ \\\[ \] \\\] \( \\\( \) \\\)} $arg]<br>        # channel_check permission<br>        set permission_result [channel_check $chan]<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG permission_result == $permission_result" }<br>        if { $permission_result == 0 } { return }<br>        # public or private<br>        if {$pub_or_not == 1 } { set toput "PRIVMSG $chan" } else { set toput "NOTICE $nick" }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG toput_result == $toput" }<br>        # if no arg passed, show help<br>        if {$arg == ""} {<br>                if { $IMDB_ALTERNATIVE == 0 } { set using "Http 2.3+" } else { set using "Curl 6.0+" }<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG no arg passed, show help" }<br>                putserv "$toput :IMDb info script \002v2.3.4\002 by B0unTy using \002$using\002"<br>                putserv "$toput :\002Syntax: !imdb &lt;movie title&gt;\002  exemple: !imdb Beautiful Mind"<br>                return<br>        }<br>        # initial search<br>        set imdburl "<a href="http://www.imdb.com" class="postlink">http://www.imdb.com</a>"<br>        set imdbsearchurl "<a href="http://akas.imdb.com/find?tt=on;nm=on;mx=5" class="postlink">http://akas.imdb.com/find?tt=on;nm=on;mx=5</a>;"<br>        set searchString [string map {\  %20 &amp; %26 , %2C . %20} $arg]<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG searchString: \"$searchString\"" }<br>        if { $IMDB_ALTERNATIVE == 0 } {<br>                set page [::http::config -useragent "MSIE 6.0"]<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG ${imdbsearchurl}q=$searchString" }<br>                set page [::http::geturl ${imdbsearchurl}q=$searchString]<br>                set html [::http::data $page]<br>                ::http::Finish $page<br>        } else {<br>                catch { exec $binary(CURL) "${imdbsearchurl}q=$searchString" } html<br>        }<br>        #if redirect necessary, find first link and redirect<br>        if { [regexp {&lt;title&gt;IMDb name and title search&lt;/title&gt;} $html] == 1 } {<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG redirect 1" }<br>                set ttcode "0000001"<br>                if [regexp {/title/tt[0-9]+} $html ttcode] {<br>                        set pos [string last / $ttcode] ; incr pos<br>                set ttcode [string range $ttcode $pos end]<br>                }<br>                # for bogus ttcode<br>                if { $ttcode == "0000001" } {<br>                        puthelp "$toput :No no no! I can't find that!"<br>                        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG bogus ttcode" }<br>                        return<br>                }<br>                set newurl "$imdburl/title/$ttcode/"<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG redirect 1 = $newurl" }<br>                # get the page redirected to<br>                unset html<br>                if { $IMDB_ALTERNATIVE == 0 } {<br>                        set page [::http::config -useragent "MSIE 6.0"]<br>                        set page [::http::geturl $newurl]<br>                        set html [::http::data $page]<br>                        ::http::Finish $page<br>                } else {<br>                        catch { exec $binary(CURL) "$newurl" } html<br>                }<br>        # if no redirect happened, then get first page on match<br>        } else {<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG redirect 0" }<br>                if { $IMDB_ALTERNATIVE == 0 } {<br>                        upvar 0 $page oldpage<br>                        regexp {title/tt[0-9]+/} $oldpage(meta) location<br>                } else {<br>                        set result [catch { exec $binary(CURL) -i "${imdbsearchurl}q=$searchString" } oldpage]<br>                        regexp {title/tt[0-9]+/} $oldpage location<br>                }<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG redirect 0 Location == $location" }<br>                set newurl "$imdburl/$location"<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG redirect 0 = $newurl" }<br>                unset html<br>                if { $IMDB_ALTERNATIVE == 0 } {<br>                        set page [::http::config -useragent "MSIE 6.0"]<br>                        set page [::http::geturl $newurl]<br>                        set html [::http::data $page]<br>                        ::http::Finish $page<br>                } else {<br>                        catch { exec $binary(CURL) "$newurl" } html<br>                }<br>        }<br>        # for bogus searches<br>        if {[string length $newurl] == 0} {<br>                puthelp "$toput :No no no! I can't find that!"<br>                if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG bogus searches" }<br>                return<br>        }<br>        set title "N/A" ; set name "N/A" ; set genre "N/A" ; set tagline "N/A"<br>        set plot "N/A" ; set rating "N/A" ; set votes "N/A" ; set mpaa "N/A"<br>        set runtime "N/A" ; set budget "N/A" ; set screens "N/A" ; set country "N/A"<br>        set language "N/A" ; set soundmix "N/A" ; set top250 "N/A"<br>        ## get title<br>        if [regexp {&lt;title&gt;[^&lt;]+} $html title] {<br>                set pos [expr [string last &gt; $title] + 1]<br>                set title [string range $title $pos end]<br>                set title [htmlcodes $title]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG title == $title" }<br>        ## get director<br>        if [regexp {Directed by&lt;/b&gt;&lt;br&gt;\n&lt;[^&gt;]+&gt;[^&lt;]+} $html name] {<br>                set pos [string last &gt; $name] ; incr pos<br>                set name [string range $name $pos end]<br>                set name [htmlcodes $name]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG director == $name" }<br>        ## get genre<br>        if [regexp {&lt;a href=./Sections/Genres[^\n]+} $html genre] {<br>                regsub -all {&lt;[^\&gt;]*&gt;} $genre {} genre<br>                regsub {\(.*\)} $genre {} genre<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG genre == $genre" }<br>        ## get tagline<br>        if [regexp {&lt;b class="ch"&gt;Tagline:&lt;/b&gt;[^&lt;]+} $html tagline] {<br>                set pos [string last &gt; $tagline] ; incr pos<br>                set tagline [string range $tagline $pos end]<br>                set tagline [string trim $tagline]<br>                set tagline [htmlcodes $tagline]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG tagline == $tagline" }<br>        ## get plot<br>        if [regexp {&lt;b class=\"ch\"&gt;Plot (Summary|Outline):&lt;/b&gt;[\s\n]+[^&lt;]+} $html plot] {<br>                set pos [string last &gt; $plot] ; incr pos<br>                set plot [string range $plot $pos end]<br>                set plot [string trim $plot]<br>                set plot [htmlcodes $plot]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG plot == $plot" }<br>        ## get iMDb rating<br>        if [regexp {&lt;b&gt;\d.\d/10&lt;/b&gt; \([\w\s\d,]+\)} $html rating] {<br>                set pos [string last ( $rating]<br>                set pos1 [string first { } $rating $pos]<br>                incr pos ; incr pos1 -1<br>                set votes [string range $rating $pos $pos1]<br>                set rating [string range $rating 3 8]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG rating == $rating | votes == $votes" }<br>        ## get TOP 250<br>        if [regexp {&lt;a href="/top_250_films"&gt;[^\n]+} $html top250] {<br>                regexp {#[^&lt;]+} $top250 top250<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG top250 == $top250" }<br>        ## get MPAA<br>        if [regexp {&lt;b class="ch"&gt;&lt;a href="/mpaa"&gt;[^\n]+} $html mpaa] {<br>                regsub -all {&lt;[^\&gt;]*&gt;} $mpaa {} mpaa<br>                regsub {MPAA: } $mpaa {} mpaa<br>                set mpaa [htmlcodes $mpaa]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG mpaa == $mpaa" }<br>        ## get runtime<br>        if [regexp {&lt;b class=\"ch\"&gt;Runtime:&lt;/b&gt;([\n\s]+)([\w:]+)(\d+)} $html runtime] {<br>                regsub -all {[\n\s]+} $runtime {} runtime<br>                set pos [string last &gt; $runtime] ; incr pos<br>                set runtime [string range $runtime $pos end]<br>                set pos [string last : $runtime]<br>                if {$pos != -1} {incr pos ; set runtime [string range $runtime $pos end]}<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG runtime == $runtime" }<br>        ## get country<br>        if [regexp {&lt;a href=./Sections/Countries[^\n]+} $html country] {<br>                regsub -all {&lt;[^\&gt;]*&gt;} $country {} country<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG country == $country" }<br>        ## get language<br>        if [regexp {&lt;a href=./Sections/Languages[^\n]+} $html language] {<br>                regsub -all {&lt;[^\&gt;]*&gt;} $language {} language<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG language == $language" }<br>        ## get soundmix<br>        if [regexp {&lt;a href=./List.sound-mix=[^\n]+} $html soundmix] {<br>                regsub -all {&lt;[^\&gt;]*&gt;} $soundmix {} soundmix<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG language == $language" }<br>        unset html<br>        if { $IMDB_ALTERNATIVE == 0 } {<br>                set page2 [::http::config -useragent "MSIE 6.0"]<br>                set page2 [::http::geturl ${newurl}business]<br>                set html [::http::data $page2]<br>                ::http::Finish $page2<br>        } else {<br>                catch { exec $binary(CURL) "${newurl}business" } html<br>        }<br>        ## get budget<br>        if [regexp {&lt;b&gt;Budget&lt;/b&gt;&lt;/dt&gt;[\s\n]?&lt;dd&gt;&lt;[^&gt;]+&gt;[^&lt;]+} $html budget] {<br>                set pos [string last &gt; $budget] ; incr pos<br>                set budget [string range $budget $pos end]<br>                set budget [string map {€  £ Ł } $budget]<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG budget == $budget" }<br>        ## get screens<br>        if [regexp {&lt;b&gt;Opening Weekend&lt;/b&gt;&lt;/dt&gt;[\s\n]?[^\n]+} $html opweek] {<br>                if [regexp {\(USA\) \([^)]+\) \([^)]+\)} $opweek screens] {<br>                        set pos [string last ( $screens]<br>                        set pos1 [string last ) $screens]<br>                        incr pos ; incr pos1 -1<br>                        set screens [string range $screens $pos $pos1]<br>                }<br>        }<br>        if {$IMDB_DEBUG == 1} { puthelp "NOTICE $nick :IMDB_DEBUG screens == $screens" }<br>        ## output results<br>        if { ! [string compare [lindex $announce(IMDBIRC) 0] "random"] &amp;&amp; [string is alnum -strict [lindex $announce(IMDBIRC)<br>1]] == 1 } {<br>                set output $random(IMDBIRC\-[rand [lindex $announce(IMDBIRC) 1]])<br>        } else {<br>                set output $announce(IMDBIRC)<br>        }<br>        set output [replacevar $output "%bold" "\002"]<br>        set output [replacevar $output "%color" "\003"]<br>        set output [replacevar $output "%uline" "\037"]<br>        set output [replacevar $output "%title" $title]<br>        set output [replacevar $output "%url" $newurl]<br>        set output [replacevar $output "%name" $name]<br>        set output [replacevar $output "%genre" $genre]<br>        set output [replacevar $output "%tagline" $tagline]<br>        set output [replacevar $output "%plot" $plot]<br>        set output [replacevar $output "%rating" $rating]<br>        set output [replacevar $output "%votes" $votes]<br>        set output [replacevar $output "%top250" $top250]<br>        set output [replacevar $output "%mpaa" $mpaa]<br>        set output [replacevar $output "%time" $runtime]<br>        set output [replacevar $output "%country" $country]<br>        set output [replacevar $output "%language" $language]<br>        set output [replacevar $output "%soundmix" $soundmix]<br>        set output [replacevar $output "%budget" $budget]<br>        set output [replacevar $output "%screens" $screens]<br>        foreach line [split $output "\n"] {<br>                puthelp "$toput :$line"<br>        }<br>}<br><br>putlog "IMDB info version 2.3.4 loaded"<br><br><br><br><br>--<br><br><br><br>and its not working<br><br>i've tried to channel:<br><br>!imdb matrix<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5972">blas</a> — Tue Feb 08, 2005 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-01-20T05:03:48-04:00</updated>

		<published>2005-01-20T05:03:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45586#p45586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45586#p45586"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45586#p45586"><![CDATA[
<blockquote class="uncited"><div>Weird as I get none at all now. You may just have to .restart your bot rather than .rehash after making the change. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>N.B Also do not use a Windows editor as they format into PC with invisible control codes that will cause errors once uploaded to your shell.</div></blockquote>By Windows Editor he means wordpad or word.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Jan 20, 2005 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-01-20T04:08:10-04:00</updated>

		<published>2005-01-20T04:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45583#p45583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45583#p45583"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45583#p45583"><![CDATA[
Weird as I get none at all now. You may just have to .restart your bot rather than .rehash after making the change. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>N.B Also do not use a Windows editor as they format into PC with invisible control codes that will cause errors once uploaded to your shell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Jan 20, 2005 4:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jimbo]]></name></author>
		<updated>2005-01-19T19:34:21-04:00</updated>

		<published>2005-01-19T19:34:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45564#p45564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45564#p45564"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45564#p45564"><![CDATA[
thx it did help me  but its still not working for me..<br><br>i still get this error on alot of searches:<br><br>Tcl error [imdb_proc]: can't read "location": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5908">jimbo</a> — Wed Jan 19, 2005 7:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-01-19T19:22:38-04:00</updated>

		<published>2005-01-19T19:22:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45562#p45562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45562#p45562"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45562#p45562"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc imdb_proc { nick uhost handle chan arg } {   global IMDB_DEBUG pub_or_not announce random binary IMDB_ALTERNATIVE   set arg [string map {\\ \\\\ \" \\\" \' \\\' \{ \\\{ \} \\\} \[ \\\[ \] \\\] \( \\\( \) \\\)} $arg]   # channel_check permission</code></pre></div>Hope that helps. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jan 19, 2005 7:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jimbo]]></name></author>
		<updated>2005-01-19T18:58:09-04:00</updated>

		<published>2005-01-19T18:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45556#p45556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45556#p45556"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45556#p45556"><![CDATA[
<blockquote class="uncited"><div>try adding this in the begining of the proc<br><br>it might not work but its worth to try i suppose .. <div class="codebox"><p>Code: </p><pre><code>set arg [string map {\\ \\\\ \" \\\" \{ \\\{ \} \\\} \[ \\\[ \] \\\] \( \\\( \) \\\)} $arg]</code></pre></div></div></blockquote>im having the same problem but im not sure exactly where to put this,<br>can you show me exactly where to put this..im a noob at this and would appreciate it very much <br><br>thx so much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5908">jimbo</a> — Wed Jan 19, 2005 6:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-01-18T06:16:17-04:00</updated>

		<published>2005-01-18T06:16:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45501#p45501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45501#p45501"/>
		<title type="html"><![CDATA[IMDB Tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45501#p45501"><![CDATA[
np<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Jan 18, 2005 6:16 am</p><hr />
]]></content>
	</entry>
	</feed>
