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

	<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-06-06T23:20:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-06-06T23:20:47-04:00</updated>

		<published>2003-06-06T23:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21389#p21389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21389#p21389"/>
		<title type="html"><![CDATA[found an answer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21389#p21389"><![CDATA[
OK folks... found the answer, thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Fri Jun 06, 2003 11:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-06-06T15:00:34-04:00</updated>

		<published>2003-06-06T15:00:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21383#p21383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21383#p21383"/>
		<title type="html"><![CDATA[ok... I'm a tcl n00b... obviously...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21383#p21383"><![CDATA[
OK... took your advice, but I must be doing something wrong... can someone please tell me where I screwed up and how to fix it? I get this error.<br><br>[13:56] &lt;CW-Bot&gt; "proc out { nick uhost hand chan }"<br>[13:56] &lt;CW-Bot&gt;     (file "scripts/restricted.tcl" line 21)<br>[13:56] &lt;CW-Bot&gt;     invoked from within<br><br>from this script:<br><br>bind join -|- "$r_chan *!*@*" out<br><br>proc out { nick uhost hand chan } {<br>global r_ban r_time r_chan<br>      foreach user [chanlist $r_chan] {<br>if {![matchattr] $hand S]} { halt }<br>      if {![file exists restrictkick]} {<br>set rnum [open restrictkick w]<br>puts $rnum "0"<br>close $rnum<br> }<br><br>set rnum [open restrictkick r]<br>gets $rnum knum<br>close $rnum<br>set cnum [expr $knum + 1]<br>set rnum [open restrictkick w]<br>puts $rnum "$cnum"<br>close $rnum<br><br>if { ![validuser $hand] } {<br>newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] neutralized " ReSTRICTED CHANNeL! \[\002\037$cnum\002\037|\002\037$r_chan\002\037\]" $r_time<br><br>}<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Fri Jun 06, 2003 3:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-06T01:59:05-04:00</updated>

		<published>2003-06-06T01:59:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21339#p21339</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21339#p21339"/>
		<title type="html"><![CDATA[simple tcl question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21339#p21339"><![CDATA[
The "matchattr" will do fine. You should see the tcl-commands.doc file and read all about it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jun 06, 2003 1:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-06-05T23:59:32-04:00</updated>

		<published>2003-06-05T23:59:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21330#p21330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21330#p21330"/>
		<title type="html"><![CDATA[better reference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21330#p21330"><![CDATA[
This script is small, so for better reference, here is a bigger exerpt.<br><br>set r_chan "#complete-servers"<br><br>set r_time 60<br><br>bind join -|- "$r_chan *!*@*" out<br><br>proc out { nick uhost hand chan } {<br>global r_ban r_time r_chan<br>if {![file exists restrictkick]} {<br>set rnum [open restrictkick w]<br>puts $rnum "0"<br>close $rnum<br> }<br><br>set rnum [open restrictkick r]<br>gets $rnum knum<br>close $rnum<br>set cnum [expr $knum + 1]<br>set rnum [open restrictkick w]<br>puts $rnum "$cnum"<br>close $rnum<br><br>if { ![validuser $hand] } {<br>newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] neutralized " ReSTRICTED CHANNeL! \[\002\037$cnum\002\037|\002\037$r_chan\002\037\]" $r_time<br><br>}<br>}<br><br>putlog "Restrict 1.2 loaded &lt;\002quantum\002&gt;"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Thu Jun 05, 2003 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MarlbMan]]></name></author>
		<updated>2003-06-05T23:42:29-04:00</updated>

		<published>2003-06-05T23:42:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21329#p21329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21329#p21329"/>
		<title type="html"><![CDATA[simple tcl question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21329#p21329"><![CDATA[
hello all... I have installed restrict.tcl on my eggy, and would like to modify it a bit, but I am a TCL dummy. It allows anyone in the userlist to enter a channel, those who are now, are kicked/temp banned on join. Brilliant idea, and I appreciate the script writers effort, but I would like to change it a bit so that it allows people in the userlist with a certain flags. I think this is the line that needs changed.<br><br>if { ![validuser $hand] } {<br><br>any help would be appreciated, I have had to remove my auto-voices and a few of my auto-ops just to lock down this channel to the appropriate user list. (and no, I dont want to +k or +i the channel, I've been through that, the whole reason I went with this script was to get away from that)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3021">MarlbMan</a> — Thu Jun 05, 2003 11:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
