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

	<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>2011-03-28T15:38:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2011-03-28T15:38:17-04:00</updated>

		<published>2011-03-28T15:38:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96563#p96563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96563#p96563"/>
		<title type="html"><![CDATA[Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96563#p96563"><![CDATA[
Script works like a charm!<br>Many thanks (again) nml375.<br><br><strong class="text-strong">Case closed!</strong> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Mon Mar 28, 2011 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-28T15:30:58-04:00</updated>

		<published>2011-03-28T15:30:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96562#p96562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96562#p96562"/>
		<title type="html"><![CDATA[Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96562#p96562"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "!t" pubTopicproc pubTopic {nick host handle channel text} {  puthelp "TOPIC $channel :$text"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Mar 28, 2011 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2011-03-28T15:28:15-04:00</updated>

		<published>2011-03-28T15:28:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96561#p96561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96561#p96561"/>
		<title type="html"><![CDATA[Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96561#p96561"><![CDATA[
<strong class="text-strong">@willyw:</strong><br>To be frank, I have (had*) nothing until just now. I searched egghelp TCL archive and tclscriptsdotcom and some other place with and search string "topic" and it yielded tons of hits. Also, since I'm not sure if any of these were copyrighted or anything, I didn't dare to just copy/paste any of their codes in here. Instead, I thought I'd start from scratch, since it feels like a quite simple function to implement.<br><br><strong class="text-strong">Thanks a lot nml375!</strong><br>Your code works perfectly well!<br><br>Any chance that anyone can fill in a little section for "!t" (change/override topic), I tried modifying the !ta section by free hand, but I'm too lousy with scripting to make it work. Sorry! :/<br><br>Again, <strong class="text-strong">thanks</strong>!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Mon Mar 28, 2011 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-28T13:34:07-04:00</updated>

		<published>2011-03-28T13:34:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96560#p96560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96560#p96560"/>
		<title type="html"><![CDATA[Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96560#p96560"><![CDATA[
Something like this should do the trick, I suppose:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o "!ta" pubAddTopicset topicSeparator " | "proc pubAddTopic {nick host handle channel text} {  if {[topic $channel] != ""} {    puthelp "TOPIC $channel :[topic $channel]${::topicSeparator}${text}"  } else {    puthelp "TOPIC $channel :$text"  }}</code></pre></div>Be adviced that this code does not check the length of the new topic...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Mar 28, 2011 1:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-03-28T13:14:35-04:00</updated>

		<published>2011-03-28T13:14:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96559#p96559</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96559#p96559"/>
		<title type="html"><![CDATA[Re: Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96559#p96559"><![CDATA[
Just thinking....<br><br>First, post whatever you have now... your current working script that will change the topic.<br><br>Next -<br>Explore the options available in your server's Chanserv.<br>Possibly '/msg chanserv help' or '/msg chanserv help topic' and look closely for another option topicappend or maybe  appendtopic or even<br>topicprepend (I've seen all three).<br><br>You are looking to see if Chanserv even offers some sort of option to append to the current topic.<br><br>I'm thinking that with seeing what you have now, that works,  and presuming there is a command available to append to current topic, - that you could do something with editing the commands in your current script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Mar 28, 2011 1:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gewan]]></name></author>
		<updated>2011-03-28T12:03:33-04:00</updated>

		<published>2011-03-28T12:03:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96558#p96558</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96558#p96558"/>
		<title type="html"><![CDATA[Simple !topic changing~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96558#p96558"><![CDATA[
Hi guys!<br><br>Me and my fellows was discussing an idea the other night. The usual "!topic &lt;new topic&gt;" is a feature that probably exists in hundreds of forms. However, we are looking for a small refinement. Say you want to _add_ something to the topic without deleting the previous topic.<br><br>Baseline. Say we have a variable %separator to set within the .TCL script, which is per default "|". Now, if I do "!t This will be our topic" the bot will simply change topic on its whole (on the channel where the command is executed, of course). Furthermore, now say that another authorized (+o) person drops "!ta Also checkout <a href="http://www.egghelp.org" class="postlink">www.egghelp.org</a> for cool scripts" (where !ta is short for "topic/add"), then the bot simply changes the topic to "This will be our topic | Also checkout <a href="http://www.egghelp.org" class="postlink">www.egghelp.org</a> for cool scripts".<br><br>You guys feel my baseline here? Wouldn't be _too_ complicated to make a script that has these two commands (!t and !ta) and listens to +o users only, right? Would be much appreciated if some bored out scripter could help us out here.<br><br>Cheers!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11468">Gewan</a> — Mon Mar 28, 2011 12:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
