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

	<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>2001-11-06T12:53:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-06T12:53:00-04:00</updated>

		<published>2001-11-06T12:53:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1400#p1400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1400#p1400"/>
		<title type="html"><![CDATA[Need an exsample script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1400#p1400"><![CDATA[
OK - The answer for that one is read tcl-commands.doc. It shows what is needed by a command, and as such, it will inform you which one is needed.<br><br>In the script, he could have used<blockquote class="uncited"><div>proc do_kill {a b c d e}</div></blockquote>All the "nick host hand chan text" defines, is what varibale names should be used when running the script.<br><br>To state the differance between each of the argiuments.<br><br><strong class="text-strong">nick</strong>: the nickname of the person that triggere the event EG: ppslim<br><br><strong class="text-strong">host</strong>: the ident and hostname of the user that triggered the event EG: <a href="mailto:look@host54.328.ntlworld.com">look@host54.328.ntlworld.com</a> - You can put together the nickname and the host to form a ban mask<br><br><strong class="text-strong">hand</strong>: The handle is a little more complex. It is basicaly a username. So my nickname on IRC could be "TCLfreak", but my handle would still be ppslim. People without a user-record on the bot, could still trigger a bind, so for these users, hand would be "*".<br><br><strong class="text-strong">chan</strong>: Obviously, the channel the bind was triggered on.<br><br><strong class="text-strong">text</strong>: The rest of the text sent when the bind was triggered EG "!pub hehe lala". If !pub was a trigger, then text would equal "hehe lala". <strong class="text-strong"><em class="text-italics">NOTE</em></strong> text is a string, and not a list, and as such, can could accidental backdoors to be made, if the text in this string is not handled correctly. If you are unsure as to handle the text, just ask.<br><br>These are not all the arguemts that could be placed in a bind, only the ones used in the pub bind. If you read tcl-commands.doc, in the bind section, you will see what each bind has sent to it. Some of the values will be obvoius, others will be explained.<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: ppslim on 2001-11-06 09:54 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 06, 2001 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-06T11:23:00-04:00</updated>

		<published>2001-11-06T11:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1397#p1397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1397#p1397"/>
		<title type="html"><![CDATA[Need an exsample script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1397#p1397"><![CDATA[
Cheers <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>I need help again.<br>I've understood that this is a public forum, and I have a right to ask for help, right?<br>Anyway, how do I know when to put {nick chan hand} or something?<br>And when not, or put something else...<p>Statistics: Posted by Guest — Tue Nov 06, 2001 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-11-05T18:09:00-04:00</updated>

		<published>2001-11-05T18:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1385#p1385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1385#p1385"/>
		<title type="html"><![CDATA[Need an exsample script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1385#p1385"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !kill do_killproc do_kill {nick uhost hand chan text}{  set victim_uhost [getchanhost $text]  if {$victim_uhost == ""} {    putserv "PRIVMSG $chan :$text not found"    return 0  }  putserv "MODE $chan +b *!$victim_uhost"  putserv "KICK $chan $text"  return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Nov 05, 2001 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-11-05T13:38:00-04:00</updated>

		<published>2001-11-05T13:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1383#p1383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1383#p1383"/>
		<title type="html"><![CDATA[Need an exsample script!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1383#p1383"><![CDATA[
Ok, I started studying TCL today <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>and I would be pleased if some of u who know TCL could make me an exsample script.<br>it should be as simple as possible, like<br>when I type !kill &lt;nick&gt; the bot would kickban the specified nick.<br>I need this script cos my English isn't that good, so I can't well understand the Sunninet's instructions <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br>If there would be a help-test in Finnish...<br>Remember: as simple as a script can be <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>Thx<br><p>Statistics: Posted by Guest — Mon Nov 05, 2001 1:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
