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

	<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-02-05T18:29:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T18:29:29-04:00</updated>

		<published>2003-02-05T18:29:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16229#p16229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16229#p16229"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16229#p16229"><![CDATA[
I figured it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set giga(host) [lindex [split [getchanhost $giga(victim)] "@"] 1]set giga(reason) "GIGA SLAVE!!!"newchanban $conchan *!*@$giga(host) $hand $giga(reason) 60</code></pre></div>My extreme crappy-ness with Strings saved me, took me 2 hours to figure that one out on my own <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> (I suck)<br><br>Works pretty good tho now <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=1195">Weirdo</a> — Wed Feb 05, 2003 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-02-05T18:11:14-04:00</updated>

		<published>2003-02-05T18:11:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16227#p16227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16227#p16227"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16227#p16227"><![CDATA[
well you could use <span style="text-decoration:underline">getuser</span> to get the host known to the eggdrop...<br><br>another option is to use <span style="text-decoration:underline">hand2nick</span> to get the nickname of the handle given, then use <span style="text-decoration:underline">getchanhost</span> on the nick to get the uhost.... this ofcourse only works if the handle/nick actually is on any of the bots channels<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Feb 05, 2003 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T16:50:29-04:00</updated>

		<published>2003-02-05T16:50:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16226#p16226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16226#p16226"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16226#p16226"><![CDATA[
Tell em about it <br><br>Any idea how to use newchanban in a DCC procedure. Cant figure out how to get the host in there at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-05T16:16:16-04:00</updated>

		<published>2003-02-05T16:16:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16224#p16224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16224#p16224"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16224#p16224"><![CDATA[
hehe, that happens when we don't read carefuly ;]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 05, 2003 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T15:10:32-04:00</updated>

		<published>2003-02-05T15:10:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16220#p16220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16220#p16220"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16220#p16220"><![CDATA[
Yup, it was the use of nickname, instead of handle, that screwed it up <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=1195">Weirdo</a> — Wed Feb 05, 2003 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-05T12:13:34-04:00</updated>

		<published>2003-02-05T12:13:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16217#p16217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16217#p16217"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16217#p16217"><![CDATA[
Then you have made an incorect usage of the 'matchattr'..<br><br>It should be something like: if {[matchattr [nick2hand $dragon(victim) $conchan] omn|omn $conchan]} {<br><br>or: if {[matchattr $hand omn|omn $conchan]} {<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 05, 2003 12:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T12:09:05-04:00</updated>

		<published>2003-02-05T12:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16216#p16216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16216#p16216"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16216#p16216"><![CDATA[
<blockquote class="uncited"><div>$dragon(victim) is victim's nick or handle?</div></blockquote>!dragon &lt;victim&gt;<br><br>Victim, not handle. Handle is still $hand<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-05T10:17:41-04:00</updated>

		<published>2003-02-05T10:17:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16203#p16203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16203#p16203"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16203#p16203"><![CDATA[
The matchattr flag syntax is a little confusing.<br><br>Use omn|omn instead of plaint omn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Feb 05, 2003 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-05T10:17:34-04:00</updated>

		<published>2003-02-05T10:17:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16202#p16202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16202#p16202"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16202#p16202"><![CDATA[
$dragon(victim) is victim's nick or handle?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 05, 2003 10:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2003-02-05T09:59:43-04:00</updated>

		<published>2003-02-05T09:59:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16199#p16199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16199#p16199"/>
		<title type="html"><![CDATA[Matchattr problems in If statement]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16199#p16199"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $dragon(victim) omn $conchan] == 1} {putlog "Unable to kick $dragon(victim). User is a registered Botnet Operator/Master/Administrator. Please place direct complaint to Founder/sucessor or use the standard kick command"return 0}</code></pre></div>Well, this is part of the validation for a partyline based kick script. What i want is it to prevent the kicking of any registered op/master/owner on the bot. Problem is, when this is in the script, it allows ops to be kicked, and when i swap the logic around, everyone is a op according to the script. <br><blockquote class="uncited"><div>  matchattr &lt;handle&gt; &lt;flags&gt; [channel]<br>    Returns: 1 if the specified user has the specified flags; 0 otherwise<br>    Module: core</div></blockquote>this is the reference i have used. Am completely bewildered why this is screwing up on me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Wed Feb 05, 2003 9:59 am</p><hr />
]]></content>
	</entry>
	</feed>
