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

	<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-08-04T14:28:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-04T14:28:51-04:00</updated>

		<published>2010-08-04T14:28:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93759#p93759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93759#p93759"/>
		<title type="html"><![CDATA[add channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93759#p93759"><![CDATA[
I set the bind to n only, I figured you only wanted owners to use this command. There really is not an exact equivalent of .+/-chan in tcl commands. Closest I could get was with using channel add/remove. This will make the channels dynamic though, meaning, your bot will automatically join them when it starts, just as it does the channels set in your config. I have not configured channel options into channel add:<br><div class="codebox"><p>Code: </p><pre><code>bind msg n addchan addchanproc addchan {nick host hand text} {set chan [join [lindex [split $text] 0]]if {![string length $chan]} {putserv "PRIVMSG $nick :You need to specify which channel to join."return 0}if {[validchan $chan]} {if {[channel get $chan "inactive"]} {channel set $chan -inactivereturn 0}putserv "PRIVMSG $nick :I am already on $chan."return 0}channel add $chan}bind msg n delchan delchanproc delchan {nick host hand text} {set chan [join [lindex [split $text] 0]]if {![string length $chan]} {putserv "PRIVMSG $nick :You need to specify which channel to remove."return 0}if {![validchan $chan]} {putserv "PRIVMSG $nick :Unknown channel: $chan."return 0}channel remove $chan}</code></pre></div>Syntax is: /msg botnick add/delchan &lt;channel&gt;.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Wed Aug 04, 2010 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-08-03T19:20:41-04:00</updated>

		<published>2010-08-03T19:20:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93751#p93751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93751#p93751"/>
		<title type="html"><![CDATA[add channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93751#p93751"><![CDATA[
Hi im looking for a small script that will allow me to add/del channels to the bots channel list via bind msg<br><br>Ex /msg botnick addchan #channelname<br>     /msg botnick delchan #channelname<br><br>in theory it should do as .+chan #channelname .-chan #channelname would do <br><br>many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Tue Aug 03, 2010 7:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
