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

	<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>2009-07-22T10:04:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Rapfnny]]></name></author>
		<updated>2009-07-22T10:04:22-04:00</updated>

		<published>2009-07-22T10:04:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89625#p89625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89625#p89625"/>
		<title type="html"><![CDATA[Re:]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89625#p89625"><![CDATA[
This is really familiar <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10660">Rapfnny</a> — Wed Jul 22, 2009 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-07-22T04:05:52-04:00</updated>

		<published>2009-07-22T04:05:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89623#p89623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89623#p89623"/>
		<title type="html"><![CDATA[Join Room Script (Modify)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89623#p89623"><![CDATA[
<blockquote class="uncited"><div>That won't work, as "channel set" (contrary to "channel add") expects each setting as a separate argument rather than a list of settings.<br><br>The two examples below should work though (and also illustrates the difference between channel set and channel add<div class="codebox"><p>Code: </p><pre><code>...proc msg:join {nick uhost handle text} {  set chan [lindex [split $text] 0]  channel add $chan "+weather +horoscope +alice"  putserv "PRIVMSG $chan :Invited by $nick"}...</code></pre></div>Or<div class="codebox"><p>Code: </p><pre><code>...proc msg:join {nick uhost handle text} {  set chan [lindex [split $text] 0]  channel add $chan  channel set $chan +weather +horoscope +alice  putserv "PRIVMSG $chan :Invited by $nick"}...</code></pre></div></div></blockquote>exactly, <br>to lazy to check before<br><div class="codebox"><p>Code: </p><pre><code>set chan_sets "+weather +horoscope +alice"#################################################bind MSG -|- "join" msg:joinbind MSG -|- "part" msg:partproc msg:join {nick uhost handle text} {        global chan_sets        set chan [lindex [split $text] 0]        channel add $chan        foreach chan_set [split $chan_sets] {                if {$chan_set != ""} {                        channel set $chan $chan_set                }        }        putserv "PRIVMSG $chan :Invited by $nick"}proc msg:part {nick uhost handle text} {        set chan [lindex [split $text] 0]        channel remove $chan}</code></pre></div>ty.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Wed Jul 22, 2009 4:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-07-21T18:01:29-04:00</updated>

		<published>2009-07-21T18:01:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89621#p89621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89621#p89621"/>
		<title type="html"><![CDATA[Join Room Script (Modify)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89621#p89621"><![CDATA[
That won't work, as "channel set" (contrary to "channel add") expects each setting as a separate argument rather than a list of settings.<br><br>The two examples below should work though (and also illustrates the difference between channel set and channel add<div class="codebox"><p>Code: </p><pre><code>...proc msg:join {nick uhost handle text} {  set chan [lindex [split $text] 0]  channel add $chan "+weather +horoscope +alice"  putserv "PRIVMSG $chan :Invited by $nick"}...</code></pre></div>Or<div class="codebox"><p>Code: </p><pre><code>...proc msg:join {nick uhost handle text} {  set chan [lindex [split $text] 0]  channel add $chan  channel set $chan +weather +horoscope +alice  putserv "PRIVMSG $chan :Invited by $nick"}...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jul 21, 2009 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2009-07-21T17:07:31-04:00</updated>

		<published>2009-07-21T17:07:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89620#p89620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89620#p89620"/>
		<title type="html"><![CDATA[Re: Join Room Script (Modify)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89620#p89620"><![CDATA[
try:<div class="codebox"><p>Code: </p><pre><code>set chan_sets "+weather +horoscope +alice"#################################################bind MSG -|- "join" msg:joinbind MSG -|- "part" msg:partproc msg:join {nick uhost handle text} {        global chan_sets        set chan [lindex [split $text] 0]        channel add $chan        channel set $chan $chan_sets        putserv "PRIVMSG $chan :Invited by $nick"}proc msg:part {nick uhost handle text} {        set chan [lindex [split $text] 0]        channel remove $chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Tue Jul 21, 2009 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2009-07-21T14:59:23-04:00</updated>

		<published>2009-07-21T14:59:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89619#p89619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89619#p89619"/>
		<title type="html"><![CDATA[Join Room Script (Modify)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89619#p89619"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind MSG -|- "join" msg:join bind MSG -|- "part" msg:part proc msg:join {nick uhost handle text} {         set chan [lindex [split $text] 0]         channel add $chan         putserv "PRIVMSG $chan :Invited by $nick" } proc msg:part {nick uhost handle text} {         set chan [lindex [split $text] 0]         channel remove $chan } </code></pre></div>Can someone please modify this so that when it adds a channel to the eggdrop.chan file and adds chansets like +weather +horoscope +alice ?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Tue Jul 21, 2009 2:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
