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

	<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>2001-09-24T21:03:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-09-24T21:03:00-04:00</updated>

		<published>2001-09-24T21:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5#p5</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5#p5"/>
		<title type="html"><![CDATA[bind topc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5#p5"><![CDATA[
By any chance, is the topic before the change set to nothing/blank?<br><br>I would sugest somthing more along the lines of this code.<br><div class="codebox"><p>Code: </p><pre><code>set chantopics {{#Chaññel http://www.url.com.br}{#channel2 http://www.url2.com}}set urltemp ""set urltemp2 ""foreach urltemp $chantopics {  lappend urltemp2 [string tolower $urltemp]}set chantopics $urltempunset urltemp urltemp2bind topc - * url_topicproc url_topic {nick uh hand chan arg} {  global chantopics  if {[set idx [lsearch -glob $chantopics "[sting tolower $chan] *"]] &lt; 0} { return }  set topic [join [lrange [lindex $chantopics $idx] 1 end]]  if {![string match -nocase "*${topic}*" $arg]} {    putserv "TOPIC $chan :http://${topic}/"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Sep 24, 2001 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stere0]]></name></author>
		<updated>2001-09-24T20:34:00-04:00</updated>

		<published>2001-09-24T20:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4#p4</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4#p4"/>
		<title type="html"><![CDATA[bind topc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4#p4"><![CDATA[
i have one script to put in the topic my url on all topic change.<br>after my upgrade to 1.6.6 this doesn't run correct, the bot can't change the topic anymore, but they match the bind command, why!?<br>&lt;bot&gt;TYPE FLGS COMMAND HITS BINDING (TCL)<br>&lt;bot&gt; topc -|- * 2 url_topic<br><br>the entire script<br>###<br>set urltopicchans "#Chaññel"<br>set urltopicmatch "<a href="http://www.url.com.br" class="postlink">www.url.com.br</a> "<br>set urltopics "<a href="http://www.url.com.br/" class="postlink">http://www.url.com.br/</a>"<br>set maxtopiclength "215"<br>bind topc - * url_topic<br><br>proc url_topic { nick uhost hand chan topic } {<br>global urltopicchans urltopicmatch urltopics botnick maxtopiclength<br>if {$urltopicchans == ""} {<br>putlog "URLtopic ERROR: Channel"<br>return 0<br>}<br>if {$urltopicmatch == "" || $urltopics == ""} {<br>putlog "URLtopic ERROR: URL"<br>return 0<br>}<br>set urlindex [lsearch [string tolower $urltopicchans] [string tolower $chan]]<br>set topic [topic $chan]<br>set urlmatch [lindex $urltopicmatch $urlindex]<br>set url [lindex $urltopics $urlindex]<br>if {![string match [string tolower "*$urlmatch*"] [string tolower $topic]]} {<br>if {![botisop $chan]} {<br>putlog "I don't have op"<br>return 0<br>}<br>if {[expr [string length $topic] + [string length $url]] &lt; $maxtopiclength} {<br>putserv "TOPIC $chan :$topic $url"<br>putlog "Including.. ."<br>return 1<br>} {<br>putlog "Topic too long"<br>return 0<br>}<br>} {<br>return 0<br>}<br>}<br><br>putlog "URLtopic Loaded"<br>###<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4">stere0</a> — Mon Sep 24, 2001 8:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
