<?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/19416" />

	<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>2013-05-11T11:58:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-05-11T11:58:55-04:00</updated>

		<published>2013-05-11T11:58:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101489#p101489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101489#p101489"/>
		<title type="html"><![CDATA[Problem with background colors]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101489#p101489"><![CDATA[
<blockquote class="uncited"><div>I am so sorry, looks like it's a bug with my IRC client; Textual.<br><br>All other clients work fine...</div></blockquote>Ah!<br>That possibility didn't even cross my mind.   <br><br>Well, I'm glad you got to the bottom of it.<br><br><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=10420">willyw</a> — Sat May 11, 2013 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-05-11T11:53:31-04:00</updated>

		<published>2013-05-11T11:53:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101488#p101488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101488#p101488"/>
		<title type="html"><![CDATA[Problem with background colors]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101488#p101488"><![CDATA[
I am so sorry, looks like it's a bug with my IRC client; Textual.<br><br>All other clients work fine...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat May 11, 2013 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-05-11T11:41:59-04:00</updated>

		<published>2013-05-11T11:41:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101487#p101487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101487#p101487"/>
		<title type="html"><![CDATA[Re: Problem with background colors]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101487#p101487"><![CDATA[
Are you sure?  <br><br>I copy-n-pasted your line of code, to the partyline of a bot.<br>Made a couple minor edits, and used:<div class="codebox"><p>Code: </p><pre><code>.tcl putquick "PRIVMSG #eggdrop :\00300,04YouTube\003 firstvar http://youtu.be/secondvar"</code></pre></div>and it seems to work fine.   The word "YouTube" appears as white text on a red background.  The rest of the line of text is plain old black on white.<br><br>Try it and see what happens.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 11, 2013 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-05-11T10:29:35-04:00</updated>

		<published>2013-05-11T10:29:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101485#p101485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101485#p101485"/>
		<title type="html"><![CDATA[Problem with background colors]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101485#p101485"><![CDATA[
I have a problem with background colors.<br><div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $chan :\00304,00YouTube\003 $result($res,title) http://youtu.be/$res"</code></pre></div>This works. Red letters on a white background.<br><div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $chan :\00300,04YouTube\003 $result($res,title) http://youtu.be/$res"</code></pre></div>This works partially. White letters on a red background. The closing \003 does not work however, the rest of the line contains the same coloring layout as well.<br><br>How can I solve this?<br><br>Whole script:<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !youtube pub:youtubeproc pub:youtube {nick host hand chan args} {        set args [lindex $args 0]        if {$args == ""} {                putquick "PRIVMSG $chan :Use: !youtube &lt;keyword&gt;"                return        }        set search [http::formatQuery v 2 alt jsonc q $args orderby viewCount max-results 3 prettyprint true]        set token [http::config -useragent "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11" -accept "*/*"]        set token [http::geturl "http://gdata.youtube.com/feeds/api/videos?$search"]        set data [::http::data $token]        http::cleanup $token##     set totalitems [lindex [regexp -all -nocase -inline {\"totalItems\"\: ([0-9]+)} $data] 1]##     putquick "PRIVMSG $chan :YouTube found $totalitems results for \002$args\002"        set lines [split $data "\n"]        set results ""        foreach line $lines {                if {[regexp -all -nocase -inline {\"id\"\: \"(.*)\"} $line] != ""} {                        set id [lindex [regexp -all -nocase -inline {\"id\"\: \"(.*)\"} $line] 1]                        lappend results $id                }                if {[regexp -all -nocase -inline {\"title\"\: \"(.*)\"} $line] != ""} {                        set result($id,title) [yturldehex [lindex [regexp -all -nocase -inline {\"title\"\: \"(.*)\"} $line] 1]]                }                if {[regexp -all -nocase -inline {\"duration\"\: ([0-9]+)} $line] != ""} {                        set result($id,duration) [lindex [regexp -all -nocase -inline {\"duration\"\: ([0-9]+)} $line] 1]                }                if {[regexp -all -nocase -inline {\"viewCount\"\: ([0-9]+)} $line] != ""} {                        set result($id,viewCount) [lindex [regexp -all -nocase -inline {\"viewCount\"\: ([0-9]+)} $line] 1]                }        }        foreach res $results {##              putquick "PRIVMSG $chan :\[\002YT\002\] $result($res,title) | [shortduration $result($res,duration)] | $result($res,viewCount) views | http://youtu.be/$res"                putquick "PRIVMSG $chan :\002YouTube\002 $result($res,title) http://youtu.be/$res"        }}proc yturldehex {string} {        regsub -all {[\[\]]} $string "" string        set string [subst [regsub -nocase -all {\&amp;#([0-9]{2,4});} $string {[format %c \1]}]]        return [string map {" \"} $string]}proc shortduration {seconds} {        set hours [expr int(floor($seconds/3600))]        set minutes [expr int(floor(($seconds%3600)/60))]        set seconds [expr $seconds - ($hours*3600) - ($minutes*60)]        if {$hours&lt;10} { set hours "0$hours" }        if {$minutes&lt;10} { set minutes "0$minutes" }        if {$seconds &lt; 10} { set seconds "0$seconds" }        return "$hours:$minutes:$seconds"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Sat May 11, 2013 10:29 am</p><hr />
]]></content>
	</entry>
	</feed>
