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

	<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>2006-08-19T08:08:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-19T08:08:11-04:00</updated>

		<published>2006-08-19T08:08:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65625#p65625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65625#p65625"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65625#p65625"><![CDATA[
thank you caesar. now everything is working fine.<br>thank all of you for quick responding and nice ideas.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Sat Aug 19, 2006 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-19T08:07:00-04:00</updated>

		<published>2006-08-19T08:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65624#p65624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65624#p65624"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65624#p65624"><![CDATA[
@caesar: Nice one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  (Makes me wonder why I did'nt think of that myself)<br><br>2ein7opf: Well, think you've stumbled across a possible new utf-8 bug :/<br>Do you get any coredumps when it crashes? Any context-backtraces?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 19, 2006 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-19T07:48:31-04:00</updated>

		<published>2006-08-19T07:48:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65623#p65623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65623#p65623"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65623#p65623"><![CDATA[
i am running eggdrop V1.6.17<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Sat Aug 19, 2006 7:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-08-17T16:50:41-04:00</updated>

		<published>2006-08-17T16:50:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65571#p65571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65571#p65571"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65571#p65571"><![CDATA[
I would go for something less complicated than having to edit the .tcl file each time I want either to add or remove a channel from the *allvoice* channels list. I'd go for a user defined channel setting, like allvoice for instance, that can be enabled/disabled via dcc chat or telnet with the eggdrop.<div class="codebox"><p>Code: </p><pre><code>setudef flag allvoicebind join - * avjoinproc avjoin {nick uhost hand chan} {  if {[isbotnick $nick] || ![channel get $chan allvoice] || ![botisop $chan]} {    return  }  pushmode $chan +v $nick}</code></pre></div>Just ".chanset #channel +allvoice" to enable the *all voice* on a specific channel and to disable it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 17, 2006 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-17T11:16:05-04:00</updated>

		<published>2006-08-17T11:16:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65562#p65562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65562#p65562"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65562#p65562"><![CDATA[
To summarize then; using list-commands on "broken" lists with extended charset crashes your bot. This means you've stumbled across a bug in either eggdrop or tcl.<br><br>Could you post some info on which version of eggdrop and tcl you're using. Also, if your bot generates any debug-info on crash, that would also be nice..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 17, 2006 11:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-17T07:39:12-04:00</updated>

		<published>2006-08-17T07:39:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65557#p65557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65557#p65557"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65557#p65557"><![CDATA[
when i use "allvoice.tcl" and try to add the channel #°o°.gn (in both ways of tryn to put in "chan1" "chan2" or "chan1 chan2") my my whole eggdrop chrashes down. when i use your script everything is fine but nothing happens on #°o°.gn when somebody joins. on every other channel it works fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Thu Aug 17, 2006 7:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-17T06:18:06-04:00</updated>

		<published>2006-08-17T06:18:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65556#p65556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65556#p65556"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65556#p65556"><![CDATA[
Does the script crash, or does your whole eggdrop crash?<br><br>Extended character-sets have been an issue with eggdrop possibly since the beginning of times (well, sorta). Some older eggies had some seriuos issues with utf-8 and tcl, tho that's supposed to be somewhat solved now.<br><br>Unfortunately, I can't think of a quick-fix right now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 17, 2006 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-16T20:26:19-04:00</updated>

		<published>2006-08-16T20:26:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65546#p65546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65546#p65546"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65546#p65546"><![CDATA[
hey, thank you for responding so fast.<br>both ways to put the channels in are causing a crashed down eggdrop.<br>your scipt works fine! thx for this great idea! <br>i think the problem is the name of one channel it have to work on.<br>the channelname includes specieal characters the channelname is #°o°.gn<br>and your postet script work on every channel except #°o°.gn<br>is there a way to make it work with these characters used in the channelname?<br><br>so long i allvoice all my channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Wed Aug 16, 2006 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-16T14:42:40-04:00</updated>

		<published>2006-08-16T14:42:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65539#p65539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65539#p65539"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65539#p65539"><![CDATA[
Something like this would be better:<div class="codebox"><p>Code: </p><pre><code>set avchat [list "#channel1" "#channel2"]</code></pre></div>foreach really works much better on lists than strings..<br>Also, think lsearch would be faster than manually scanning through the whole list using foreach <div class="codebox"><p>Code: </p><pre><code>set avchan [list]#set avchan [list [string tolower "#mychan"] [string tolower "#mychan2"]]bind join - * avjoinproc avjoin {nick uhost hand chan} { global avchan botnick if {$nick == $botnick} {return 0} set chan [string tolower $chan] if {[botisop $chan] &amp;&amp; ([llength $avchan] == 0 || [lsearch $avchan $chan] &gt;= 0)} {  pushmode $chan +v $nick  return 0 }} </code></pre></div>Anyway, using list when setting avchan would be mandatory (unless you really got a fetish of building valid list-structures manually <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> ), rewritten code is purely optional, guppy's original code should work fine I guess (or well, "string tolower" should'nt damage the list-structure, but that's just my guess..)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Aug 16, 2006 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dusk]]></name></author>
		<updated>2006-08-16T13:42:30-04:00</updated>

		<published>2006-08-16T13:42:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65537#p65537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65537#p65537"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65537#p65537"><![CDATA[
I guess you just leave a space between two inserted chans.<div class="codebox"><p>Code: </p><pre><code>set avchan "#channel1 #channel2" </code></pre></div><br>GRTZ<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6042">dusk</a> — Wed Aug 16, 2006 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-16T12:36:26-04:00</updated>

		<published>2006-08-16T12:36:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65534#p65534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65534#p65534"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65534#p65534"><![CDATA[
sorry. here is the script i`m talkin abot.<br><div class="codebox"><p>Code: </p><pre><code>## allvoice.tcl##  - voices everyone in a channel when they join# What channels should this work on?#  - note, "" is for all channelsset avchan "" ## Begin the codebind join - * avjoinproc avjoin {nick uhost hand chan} { global avchan botnick if {$nick == $botnick} {return 0} if {$avchan == "" &amp;&amp; [botisop $chan]} {  pushmode $chan +v $nick  return 0 } set chan [string tolower $chan] foreach i [string tolower $avchan] {  if {$i == $chan &amp;&amp; [botisop $chan]} {   pushmode $chan +v $nick   return 0  } }}putlog "Loaded allvoice.tcl by guppy"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Wed Aug 16, 2006 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-08-16T12:08:26-04:00</updated>

		<published>2006-08-16T12:08:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65530#p65530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65530#p65530"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65530#p65530"><![CDATA[
and we don't know what allvoice.tcl is<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Aug 16, 2006 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ein7opf]]></name></author>
		<updated>2006-08-16T09:34:13-04:00</updated>

		<published>2006-08-16T09:34:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65524#p65524</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65524#p65524"/>
		<title type="html"><![CDATA[addchannel on allvoive.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65524#p65524"><![CDATA[
hi,<br>i have got a question about allvoice.tcl<br>the option is:<br><br>set avchan "" /// this means that allvoice is enabled on all channels.<br>set avchan "#channel" /// works only on inserted channel.<br><br>i want that autovice is enabled for 2 channels.<br>how can i add more than 1 channel?<br><br>i don`t know what i have to put in there to make it work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8097">ein7opf</a> — Wed Aug 16, 2006 9:34 am</p><hr />
]]></content>
	</entry>
	</feed>
