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

	<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>2010-02-10T18:05:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-02-10T18:05:55-04:00</updated>

		<published>2010-02-10T18:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92045#p92045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92045#p92045"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92045#p92045"><![CDATA[
<blockquote class="uncited"><div>Replace "botison" with "botonchan".</div></blockquote>DOH! Sir_Fz to the rescue.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>Thanks for the save.. keke<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Feb 10, 2010 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2010-02-10T14:32:49-04:00</updated>

		<published>2010-02-10T14:32:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92039#p92039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92039#p92039"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92039#p92039"><![CDATA[
Replace "botison" with "botonchan".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 10, 2010 2:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-02-10T12:47:51-04:00</updated>

		<published>2010-02-10T12:47:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92038#p92038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92038#p92038"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92038#p92038"><![CDATA[
That doesn't seem to work, even though I used .chanset #EPL +mytopic and added the user with a +v flag, and he is voiced on the channel.<br><br><br>[17:45] Tcl error [cmd:topic]: invalid command name "botison"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Wed Feb 10, 2010 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-02-09T18:46:52-04:00</updated>

		<published>2010-02-09T18:46:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92029#p92029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92029#p92029"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92029#p92029"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag mytopicbind msg v|v topic cmd:topicproc cmd:topic {nick uhost hand arg} {set chan [lindex [split $arg] 0]set text [join [lrange [split $arg] 1 end]]if {[string match *[string index $chan 0]* "#&amp;"]} {if {[validchan $chan] &amp;&amp; [botison $chan]} {if {[botisop $chan]} {if {[channel get $chan mytopic]} {if {[onchan $nick $chan]} {putserv "TOPIC $chan :$text"} else {putserv "NOTICE $nick :You need to be in the channel to witness the topic change. Nice try. :P"}} else {putserv "NOTICE $nick :You CANNOT change topic of $chan. Nice try."}} else {putserv "NOTICE $nick :I'm not op of $chan so no topic change for you. :P"}} else {putserv "NOTICE $nick :I'm not on $chan. How do you expect me to change topic?!"}} else {putserv "NOTICE $nick :What is $chan? That doesn't look like any IRC channel I've ever seen. :P"}}</code></pre></div>Here's the same script with some extra checks to make sure users aren't causing your bot to send garbage to the IRCD.<br>To get it to work in #yourchan: .chanset #yourchan +mytopic<br>After that, it will work for users with voice in #yourchan. Other users cannot manipulate your bot without being in it's presence.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Feb 09, 2010 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-02-09T15:24:09-04:00</updated>

		<published>2010-02-09T15:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92026#p92026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92026#p92026"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92026#p92026"><![CDATA[
I just use a this simple bit of script to do channel topics<br><div class="codebox"><p>Code: </p><pre><code>bind msg v|v topic cmd:topicproc cmd:topic {nick uhost hand arg} {  set chan [lindex [split $arg] 0]    set text [join [lrange [split $arg] 1 end]]    putserv "TOPIC $chan :$text"  }</code></pre></div>/msg botnick topic #chan topic text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Tue Feb 09, 2010 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-02-09T14:38:59-04:00</updated>

		<published>2010-02-09T14:38:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92025#p92025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92025#p92025"/>
		<title type="html"><![CDATA[Topic script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92025#p92025"><![CDATA[
Hey,<br><br>I couldn't find a regula, simple script, that allows flag "v" to change a selected channel's topic via private message.<br><br>Would be glad if anyone could help, shouldn't be a long script right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Tue Feb 09, 2010 2:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
