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

	<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-04-16T01:32:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-04-16T01:32:03-04:00</updated>

		<published>2003-04-16T01:32:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19120#p19120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19120#p19120"/>
		<title type="html"><![CDATA[lol i need serious help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19120#p19120"><![CDATA[
This means: if $knick is in $chan channel and he has op there or he has the nb flags to continue, yes, it's correct.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Apr 16, 2003 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SnOoPDoGg187]]></name></author>
		<updated>2003-04-15T19:37:06-04:00</updated>

		<published>2003-04-15T19:37:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19116#p19116</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19116#p19116"/>
		<title type="html"><![CDATA[don't understand whatcha mean]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19116#p19116"><![CDATA[
i allways get mixed up with the brackets but i think i tried that but it didn't work lol and do i need the { } ??<br><br>is this correct?<br><br>if {[onchan $knick $chan] &amp;&amp; [isop $knick $chan] || [matchattr $hand nb|- $chan]} {<br><br>right or no?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2966">SnOoPDoGg187</a> — Tue Apr 15, 2003 7:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-15T19:31:38-04:00</updated>

		<published>2003-04-15T19:31:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19115#p19115</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19115#p19115"/>
		<title type="html"><![CDATA[lol i need serious help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19115#p19115"><![CDATA[
In tcl, you use [ ] to surround commands instead of ( ). I think that's pretty much your only problem, except that your logic is ambiguous (you use &amp;&amp; and || with no grouping).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Apr 15, 2003 7:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SnOoPDoGg187]]></name></author>
		<updated>2003-04-15T18:43:14-04:00</updated>

		<published>2003-04-15T18:43:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19114#p19114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19114#p19114"/>
		<title type="html"><![CDATA[lol i need serious help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19114#p19114"><![CDATA[
proc kick {nick uhost hand chan rest} {<br>    set chan [string tolower $chan]<br>       set knick [lindex $rest 0]<br>       set reason [lrange $rest 1 end]<br>       if {[onchan $knick $chan] == 0} {<br>          puthelp "NOTICE $nick :I don't see $knick in this channel"<br>          return 0<br>       }<br>       if {((onchan $knick $chan) &amp;&amp; (isop $knick $chan) || (matchattr $hand nb|- $chan))} {<br>             puthelp "PRIVMSG $chan :$nick, Hey You F****** Retard Don't Be Kicking Ops!"<br>             return 0<br>          }<br>          putkick $chan $knick "$reason"<br>       }<br><br>k i can't figure out what's wrong with it i've tried and tried but can't get it to work right i know what's wrong with it it's this line here<br><br>if {((onchan $knick $chan) &amp;&amp; (isop $knick $chan) || (matchattr $hand nb|- $chan))} {<br><br>heres the erro it gives me also Tcl error [kick]: syntax error in expression "((onchan $knick $chan) &amp;&amp; (isop $knick $chan) || (matchattr "<br><br>all i want it to do is not kick someone if there currently opped in the room or if they have global +nb flags<br><br>is there a better way to do it also like not let the ops kick each other at all or something? i don't know lol not enought sleep i guess<br><br>could someone help me out plx thanks : )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2966">SnOoPDoGg187</a> — Tue Apr 15, 2003 6:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
