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

	<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>2002-11-13T05:25:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-13T05:25:44-04:00</updated>

		<published>2002-11-13T05:25:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13110#p13110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13110#p13110"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13110#p13110"><![CDATA[
This can produce odd reasults.<br><br>It's all well and good, for a small eggdrop userbase (owner, and a few helpers). However, once you start using the bot for channel managment, and a few fancy scripts, it can start producing odd results, where one min it matches a user correctly, next, the user is kicked.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 13, 2002 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mcdarby]]></name></author>
		<updated>2002-11-13T05:12:01-04:00</updated>

		<published>2002-11-13T05:12:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13109#p13109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13109#p13109"/>
		<title type="html"><![CDATA[Re: HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13109#p13109"><![CDATA[
<blockquote class="uncited"><div>Ok, i need my egg to hold a User list and only allow the people that are on the list to join the channel. does anyone know how to do this?<br><br>i am a total beginner at this. I made a bot for mirc that does this, but now i want my egg to do it and i have no idea how to script TCL's or wutever they call it.. lol<br><br>can someone help me out?</div></blockquote>What you should do is instead of looking for a TCL script to do that, try adding a user entry called "AllUsers" with the hoskmask of *!*@* and set the +k flag to it. I think that would do what your asking for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1594">mcdarby</a> — Wed Nov 13, 2002 5:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-08T10:31:34-04:00</updated>

		<published>2002-11-08T10:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12949#p12949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12949#p12949"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12949#p12949"><![CDATA[
As stated, many commands are provided by Tcl itself. Other are provided by eggdrop, for interaction and information retrieval.<br><br>As such, the script uses commands provided by eggdrop, to see if the user is in the eggdrops internal userlist.<br><br>As such, it is eggdrops own internal userlist that is used. This can be manipulated via commands inside the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Nov 08, 2002 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-08T10:14:27-04:00</updated>

		<published>2002-11-08T10:14:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12948#p12948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12948#p12948"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12948#p12948"><![CDATA[
thanks alot ppslim.. I understand it a little better now  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>i still have one question though. this code supposedly only lets people in the channel (#dummy) if they are on the list.<br><br>my question is, where is this list and how are users added/removed?<br><br>sorry for all the questions but im slowly learning thanks to u guyz.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Fri Nov 08, 2002 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-08T05:58:24-04:00</updated>

		<published>2002-11-08T05:58:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12944#p12944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12944#p12944"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12944#p12944"><![CDATA[
First off, Tcl is nothing like mIRC script.<br><br>The format of various commands can vary from item to item, which can be confusing.<br><br>Tcl ont he other hand, uses a simple sturcture, from which everything is based. once you know the structure, you only need to know the commands.<br><div class="codebox"><p>Code: </p><pre><code>## "set" is a command. Like in mIRC, it is used to create a variable.## In this case, the variable name is r_chan, and has a value of "#dummy"set r_chan "#dummy"set r_ban 1# if 0, the tcl just kick the userset r_time 60# duration of ban, 0 for perm, in minutes## "bind" is a eggdrop tcl command. It is used to setup event callbacks.## Event callbacks are simalar to mIRC's "on join:, on text:".## You tell it what event to look for, the flags a user must have (this is the user that triggers the event)## Next is the matching text, IE, for channel messages, it matches it agaiunst that## Last is the command that should be called, when the event matches.bind join -|- "$r_chan *!*@*" out## "proc" is a command that creates a new command, and tells it what to name the arguments being sent to it.## Simalar to the alias command in mIRC. Though you don't use $1, $2 in Tcl, you give each item being sent a nameproc out { nick uhost hand chan } {                ## In mIRC, if a variable is created, it can be used by any script                ## In Tcl, you have to create it globaly (outside the proc) to use it anywhere.                ## Global allow you access to these variables. Youc an also make a var global, if you wish to create or change the var inside the proc.global r_ban r_time r_chan                ## If, very same to mIRC, though the format is differentif { ![validuser $hand] } {putserv "KICK $chan $nick :you're not allowed to be here"if { $r_ban == 1 } {newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] CrazyHelp "May find your channel" $r_time}}}putlog "Restrict 1.1 loaded"</code></pre></div>Items enclose in [] are avaluated, and there return values, is used in return. This is simalar to the $blah() identifiers in mIRC.<br><br>All the other commands, you will have to read either in the <a href="http://www.tcl.tk/man/tcl8.3/TclCmd/contents.htm" class="postlink">Tcl manual</a> or from tcl-commands.doc int he eggdrop's docs directory.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Nov 08, 2002 5:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-07T23:34:11-04:00</updated>

		<published>2002-11-07T23:34:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12940#p12940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12940#p12940"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12940#p12940"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set r_chan "#dummy"set r_ban 1# if 0, the tcl just kick the userset r_time 60# duration of ban, 0 for perm, in minutesbind join -|- "$r_chan *!*@*" outproc out { nick uhost hand chan } {global r_ban r_time r_chanif { ![validuser $hand] } {putserv "KICK $chan $nick :you're not allowed to be here"if { $r_ban == 1 } {newchanban $chan [string trimleft [maskhost [getchanhost $nick $chan]] ~] CrazyHelp "May find your channel" $r_time}}}putlog "Restrict 1.1 loaded"</code></pre></div>ok fellas, this code was taken right out of the TCL that i found written by CrazyCat.<br><br>Now, wut i am trying to do is learn/understand TCL but i am having a hard time with it. Maybe one of you guys out there that know wut ur doing can take some time to help me. Maybe an explanation of wut each line does will help. <br><br>Remember, i am a total beginner at this. (Today is my first day so go easy on me). I script very well for mirc, and this doesnt seem that different so I think I will get the hang of it soon.<br><br>So all i ask is that someone give me a line by line explanation to this TCL code so i can understand it better. <br><br>thanx  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by Guest — Thu Nov 07, 2002 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-07T15:52:10-04:00</updated>

		<published>2002-11-07T15:52:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12932#p12932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12932#p12932"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12932#p12932"><![CDATA[
there's lots of way to learn tcl...<br>u can learn by reading the tutorials all over the net... some good links on this site.<br>u can learn by studying the tcl-commands.doc on your eggdrop.. though this only applies to eggdrop related tcl-codes..<br>and perhapse one of the most important things ... study other codes.. try splitting them and to understand what they do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>start making a code... and when you are stuck.. come here and ask again.. we'll be happy to help... but we ain't (usually) making you're scripts for you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Nov 07, 2002 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-07T14:56:33-04:00</updated>

		<published>2002-11-07T14:56:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12927#p12927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12927#p12927"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12927#p12927"><![CDATA[
yeah, i found that tcl before i even wrote this post.<br><br>But rather than using someone elses code, i'd rather make one myself or at least know how it works.<br><br>i want to learn TCL just like i learned mirc scripting, visual basics, and C++.. thats why.<br><br>so if anyone thinks that can help me learn or explain the coding to this TCL than please help.<br><br>btw, Papillon, thanx for the reply <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Thu Nov 07, 2002 2:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-07T12:59:42-04:00</updated>

		<published>2002-11-07T12:59:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12920#p12920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12920#p12920"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12920#p12920"><![CDATA[
take a look in the tcl-archive. should be some scripts which does this in there<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Nov 07, 2002 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-07T12:11:54-04:00</updated>

		<published>2002-11-07T12:11:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12918#p12918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12918#p12918"/>
		<title type="html"><![CDATA[HELP! need a script that will restrict a channel.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12918#p12918"><![CDATA[
Ok, i need my egg to hold a User list and only allow the people that are on the list to join the channel. does anyone know how to do this?<br><br>i am a total beginner at this. I made a bot for mirc that does this, but now i want my egg to do it and i have no idea how to script TCL's or wutever they call it.. lol<br><br>can someone help me out?<p>Statistics: Posted by Guest — Thu Nov 07, 2002 12:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
