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

	<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-09-04T01:51:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-04T01:51:38-04:00</updated>

		<published>2003-09-04T01:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26433#p26433</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26433#p26433"/>
		<title type="html"><![CDATA[matchattr problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26433#p26433"><![CDATA[
Use the <em class="text-italics">nick2hand</em> to get the hand from a nick and then use <em class="text-italics">matchattr</em>, but in your case use <em class="text-italics">matchattr</em> on handle, if it's known by the bot will be his user if is not will be * as in everyone aka. no access <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=187">caesar</a> — Thu Sep 04, 2003 1:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-03T22:44:04-04:00</updated>

		<published>2003-09-03T22:44:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26420#p26420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26420#p26420"/>
		<title type="html"><![CDATA[matchattr problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26420#p26420"><![CDATA[
'Generally' and 'usually' don't occur often enough..<br><br>In any event, I also just noticed this:<br><div class="codebox"><p>Code: </p><pre><code>        puthelp "PRIVMSG $nick: $text1"         puthelp "PRIVMSG $nick: $text2" </code></pre></div>IRC expects a PRIVMSG to be of the format:<br><strong class="text-strong">PRIVMSG &lt;target&gt; :&lt;message&gt;</strong><br><br>Notice that the colon comes right before the message, not right after the target.... thus it should be:<br><div class="codebox"><p>Code: </p><pre><code>        puthelp "PRIVMSG $nick :$text1"         puthelp "PRIVMSG $nick :$text2" </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Sep 03, 2003 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Darkj]]></name></author>
		<updated>2003-09-03T21:42:37-04:00</updated>

		<published>2003-09-03T21:42:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26416#p26416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26416#p26416"/>
		<title type="html"><![CDATA[matchattr problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26416#p26416"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set text1 "text number 1" set text2 "text number 2" set reason "you are out" bind pub - !power pub:power proc pub:power {nick uhost handle chan text} { global botnick text1 text2 reasonif {[matchattr $nick o|o $chan]}  {         puthelp "PRIVMSG $nick: $text1"         puthelp "PRIVMSG $nick: $text2"        return 0     } else {        putkick $chan $nick $reason        return 0       }   }} </code></pre></div>This looks about right, you can check matchattr against a nickname.  Generally, 'nick' is usually the person who triggered command.  This is untested, but looks about right.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3459">Darkj</a> — Wed Sep 03, 2003 9:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-03T20:31:23-04:00</updated>

		<published>2003-09-03T20:31:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26414#p26414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26414#p26414"/>
		<title type="html"><![CDATA[Re: matchattr problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26414#p26414"><![CDATA[
<blockquote class="uncited"><div>Hi there.... i made one tcl, but i can't find the problem, can you help me?!<br>theres the code <div class="codebox"><p>Code: </p><pre><code>set text1 "text number 1"set text2 "text number 2"set reason "you are out" bind pub - !power pub:powerproc pub:power {nick uhost handle chan text} {global botnickglobal text1global text2global reasonif {([matchattr $nick o|o $chan])}  {  puthelp "PRIVMSG $nick: $text1" puthelp "PRIVMSG $nick: $text2" } else putkick $chan $nick $reason}</code></pre></div>why when someone that have the flag +o when put the trigger he doesn't give the text!!? The ideia of this tcl is that, someone that have the flag, when trig the !power it will be sent to him a text, if this person don't have the falag should be kick.<br>Thanks guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>"matchattr" matches flags against a 'handle' not a 'nick'...<br>Thus, you should be using $handle not $nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Sep 03, 2003 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[the_crow]]></name></author>
		<updated>2003-09-03T20:21:16-04:00</updated>

		<published>2003-09-03T20:21:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26413#p26413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26413#p26413"/>
		<title type="html"><![CDATA[matchattr problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26413#p26413"><![CDATA[
Hi there.... i made one tcl, but i can't find the problem, can you help me?!<br>theres the code <div class="codebox"><p>Code: </p><pre><code>set text1 "text number 1"set text2 "text number 2"set reason "you are out" bind pub - !power pub:powerproc pub:power {nick uhost handle chan text} {global botnickglobal text1global text2global reasonif {([matchattr $nick o|o $chan])}  {  puthelp "PRIVMSG $nick: $text1" puthelp "PRIVMSG $nick: $text2" } else putkick $chan $nick $reason}</code></pre></div>why when someone that have the flag +o when put the trigger he doesn't give the text!!? The ideia of this tcl is that, someone that have the flag, when trig the !power it will be sent to him a text, if this person don't have the falag should be kick.<br>Thanks guys <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=2778">the_crow</a> — Wed Sep 03, 2003 8:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
