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

	<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>2003-10-03T10:32:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-03T10:32:36-04:00</updated>

		<published>2003-10-03T10:32:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27876#p27876</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27876#p27876"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27876#p27876"><![CDATA[
For matching #TestChannel with #testchannel use the string match and for matching flags to a certain user use:<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand -|m $channel]} {</code></pre></div>if the person who trigers the proc is the person who should be checked for the specified flag(s) and else:<div class="codebox"><p>Code: </p><pre><code>if {[matchattr [nick2hand $nick] -|m $channel]} {</code></pre></div>when the person who triggers the proc is not the person who should be checked for the flags but a certain defined user from the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Oct 03, 2003 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-10-03T03:56:14-04:00</updated>

		<published>2003-10-03T03:56:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27862#p27862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27862#p27862"/>
		<title type="html"><![CDATA[Re: matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27862#p27862"><![CDATA[
<blockquote class="uncited"><div>ok...i have problem to match channel name...<br>if my channel are config like this #TestChannel and $chan variable are #testchannel....then channel doesn't match, right? so are there any way to solve this?</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind pub - !testing pub:testingproc pub:testing { nick host hand chan arg } {    set channel [string lower $chan]    if {[matchattr $nick m $channel]} {        ...some code...    }}</code></pre></div>another security is:<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $nick -|m $channel]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Oct 03, 2003 3:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-10-02T17:30:28-04:00</updated>

		<published>2003-10-02T17:30:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27847#p27847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27847#p27847"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27847#p27847"><![CDATA[
and maybe add this <div class="codebox"><p>Code: </p><pre><code>{[matchattr $handle m $chan] == 1}</code></pre></div> could be mestaking<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Oct 02, 2003 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-01T15:05:12-04:00</updated>

		<published>2003-10-01T15:05:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27804#p27804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27804#p27804"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27804#p27804"><![CDATA[
Use "string match -nocase" then, consult the manual <a href="http://tcl.activestate.com/man/tcl8.3/TclCmd/string.htm#M35" class="postlink">here</a> or do a forum search.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Oct 01, 2003 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-01T14:43:45-04:00</updated>

		<published>2003-10-01T14:43:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27803#p27803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27803#p27803"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27803#p27803"><![CDATA[
ouh...mistake in example code...<br>that's not  solution for my problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by Guest — Wed Oct 01, 2003 2:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2003-10-01T14:01:38-04:00</updated>

		<published>2003-10-01T14:01:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27802#p27802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27802#p27802"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27802#p27802"><![CDATA[
I think:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !testing pub:testing proc pub:testing { nick host handle chan arg } {     if {[matchattr $handle m $chan]} {         ...some code...     } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Wed Oct 01, 2003 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-10-01T13:57:51-04:00</updated>

		<published>2003-10-01T13:57:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27801#p27801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27801#p27801"/>
		<title type="html"><![CDATA[matchattr problem...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27801#p27801"><![CDATA[
ok...i have problem to match channel name...<br>if my channel are config like this #TestChannel and $chan variable are #testchannel....then channel doesn't match, right? so are there any way to solve this?<br><br>there is my code....<div class="codebox"><p>Code: </p><pre><code>bind pub - !testing pub:testingproc pub:testing { nick host hand chan arg } {    if {[matchattr $nick m $chan]} {        ...some code...    }}</code></pre></div>ps. sorry bad english :/<p>Statistics: Posted by Guest — Wed Oct 01, 2003 1:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
