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

	<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>2014-07-29T02:59:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2014-07-29T00:56:34-04:00</updated>

		<published>2014-07-29T00:56:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103083#p103083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103083#p103083"/>
		<title type="html"><![CDATA[setudef flag not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103083#p103083"><![CDATA[
well both are same actually... first one says" if $chan has that-flag,lets do this work..."<br><br>second one says  " if we don't have that-flag ,won't do anything ..."<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Tue Jul 29, 2014 12:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-29T00:52:09-04:00</updated>

		<published>2014-07-29T00:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103082#p103082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103082#p103082"/>
		<title type="html"><![CDATA[setudef flag not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103082#p103082"><![CDATA[
Is it better to use:<br><div class="codebox"><p>Code: </p><pre><code>if {[channel get $chan that-flag]} {...</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan that-flag]} { return }if ......</code></pre></div>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Tue Jul 29, 2014 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[heartbroken]]></name></author>
		<updated>2014-07-29T02:59:36-04:00</updated>

		<published>2014-07-29T00:43:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103081#p103081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103081#p103081"/>
		<title type="html"><![CDATA[setudef flag not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103081#p103081"><![CDATA[
setudef flag not working because :<br><br>there is only setudef flag ... line outside of the procs , it doesn't check if this defined channel flag activated on $chan in the procs... <br><br>there are only checks that : if  $spy(chan) equivalence to $channel .. in every proc<br>-&gt; <a href="https://www.tcl.tk/man/tcl8.6/TclCmd/string.htm" class="postlink">https://www.tcl.tk/man/tcl8.6/TclCmd/string.htm</a><br><br>so how we gonna check this "user defined channel flags in procs?"<br><br>method 1 : "channel get" -&gt; <a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html#chancmds" class="postlink">http://www.eggheads.org/support/egghtml ... l#chancmds</a><br><div class="codebox"><p>Code: </p><pre><code>if {[channel get $chan that-flag]} { .... </code></pre></div>method 2 :  with "lsearch" -&gt; <a href="http://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.htm" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/lsearch.htm</a><br> <div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [channel info $chan] "+that-flag"] != -1} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11703">heartbroken</a> — Tue Jul 29, 2014 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-28T23:55:29-04:00</updated>

		<published>2014-07-28T23:55:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103080#p103080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103080#p103080"/>
		<title type="html"><![CDATA[setudef flag not working]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103080#p103080"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag relayset spy(home) "#daigo"set spy(chan) "#helpops"bind PUBM   -|- *                spychan:chatbind CTCP   -|- "ACTION"         spychan:actionbind SIGN   -|- "$spy(chan) *"   spychan:signbind JOIN   -|- "$spy(chan) *"   spychan:joinbind PART   -|- "$spy(chan) *"   spychan:partbind SPLT   -|- "$spy(chan) *"   spychan:splitbind KICK   -|- "$spy(chan) *"   spychan:kickbind RAW     *  "MODE"           spychan:modeproc spychan:part { nickname hostname handle channel reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has left $spy(chan)"}       }proc spychan:join { nickname hostname handle channel } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has joined $spy(chan)"}       }proc spychan:kick { nickname hostname handle channel target reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $target was kicked from $spy(chan) by $nickname ($reason)"}       }proc spychan:mode { from key arguments } {global spyset channel [string trim [lindex [split $arguments] 0]] set modechange [string trim [lindex [split $arguments] 1]] set victims [string trim [join [lrange [split $arguments] 2 end]]] set nickname [string trim [lindex [split $from "!"] 0]] set hostname [string trim [lindex [split $from "!"] 1]]if {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname sets mode: $modechange $victims"}       }proc spychan:sign { nickname hostname handle channel reason } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname ($hostname) has quit IRC ($reason)"}       }proc spychan:split { nickname hostname handle channel arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname has split from the network"}       }proc spychan:chat { nickname hostname handle channel arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] &lt;$nickname&gt; $arguments"        }       }proc spychan:action { nickname hostname handle channel keyword arguments } {global spyif {[string equal -nocase $channel $spy(chan)]} {        putserv "PRIVMSG $spy(home) :\[$channel\] * $nickname $arguments"        }       }</code></pre></div>Even though I didn't set the +relay flag in any channels (it's -relay in all channels), it still relays all the messages into #daigo from #helpops. I even restarted the bot but it still activates.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Mon Jul 28, 2014 11:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
