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

	<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>2008-01-12T07:46:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2008-01-06T18:31:39-04:00</updated>

		<published>2008-01-06T18:31:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79849#p79849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79849#p79849"/>
		<title type="html"><![CDATA[msg all channels/on channel? [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79849#p79849"><![CDATA[
thx tsukeh<br>working like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Sun Jan 06, 2008 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2008-01-02T12:32:10-04:00</updated>

		<published>2008-01-02T12:32:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79746#p79746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79746#p79746"/>
		<title type="html"><![CDATA[msg all channels/on channel? [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79746#p79746"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !lol lolprocset diffchans [list #LOL #ROFL #OMGWTF]proc lolproc {nick uhost hand chan text} { set value [lindex [split $text] 0] foreach i $::diffchans {  if ![string equal -nocase $chan $i] {   putquick "PRIVMSG $i :\[NEWS\] - $value"  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Wed Jan 02, 2008 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2008-01-02T11:09:12-04:00</updated>

		<published>2008-01-02T11:09:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79744#p79744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79744#p79744"/>
		<title type="html"><![CDATA[msg all channels/on channel? [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79744#p79744"><![CDATA[
mh weird .. can you get me an impression how to handle this please? ^^<br><br>//edit:<br><br>I was wondering if I shouldnt do it that way:<div class="codebox"><p>Code: </p><pre><code>bind pub - !lol lolproc set diffchans "#LOL #ROFL #OMGWTF"proc lolproc { nick uhost handle chan text } {    set value [lindex $text 0]    set dchans [split $::diffchans " "]    if { [string equal -nocase $chan $dchans] } {       set dchans [string map { "$chan" "" } $dchans]    }    foreach schan $diffchans {       putquick "PRIVMSG $schan :\[NEWS\] - $value"    } }</code></pre></div>removed [list when setting diffchans and added split $::diffchans " ". maybe that one is gonna work. what do you think?<br><br>//edit:<br><br>not working either <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>very weird thingie. Though Im trying to remove that channel where the bot is in temporarely so it wont get messaged ... very weird :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Wed Jan 02, 2008 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-01-02T09:19:19-04:00</updated>

		<published>2008-01-02T09:19:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79741#p79741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79741#p79741"/>
		<title type="html"><![CDATA[msg all channels/on channel? [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79741#p79741"><![CDATA[
You use split on lists, you shouldn't.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jan 02, 2008 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2008-01-12T07:46:32-04:00</updated>

		<published>2008-01-01T23:20:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79736#p79736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79736#p79736"/>
		<title type="html"><![CDATA[msg all channels/on channel? [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79736#p79736"><![CDATA[
The one post <a href="http://forum.egghelp.org/viewtopic.php?t=15101" class="postlink">Weird behavior of FOREACH command</a> gave me some idea in how to handle what I was thinking about a few days ago.<br><br>So I figured out this isnt a problem at all - but what is a problem is another feature that needs to be combined with that one, but lets start from the beginning ^^<br><br>Im up to let the bot catch specific messages from (make it a random number) 3 channels where it sits in. There are 3 different channels where other bots are going to announce news from 3 different news sites which will be catched from my bot. So now I want my bot to announce ALL of the 3 channels it is in <strong class="text-strong">except</strong> the one where it got the news message from. I hope I explained it well ^^<br><br>here is an example of what I tried:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !lol lolprocset diffchans [list "#LOL" "#ROFL" "#OMGWTF"]proc lolproc { nick uhost handle chan text } {set value [lindex $text 0]set dchans [split $::diffchans]if { [string equal -nocase $chan $dchans] } {set dchans [string map { "$chan" "" } $dchans]}foreach schan $diffchans {putquick "PRIVMSG $schan :\[NEWS\] - $value"}}</code></pre></div>This is just a testproc to see if the idea would even work so far. So I provide info to the bot by typing "!lol test". Somehow the whole if loop gets ignored and the bot just messages into all channels.<br><br>Im not sure if there is also another way to remove a item from a list temporarily - thats why I did the set dchans [string map { "$chan" "" } $dchans. Someone please keep the ball rolling so I can get a new impression on this one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>appreciated <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Jan 01, 2008 11:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
