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

	<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-02-22T13:55:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-22T13:55:00-04:00</updated>

		<published>2002-02-22T13:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4838#p4838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4838#p4838"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4838#p4838"><![CDATA[
For my first sugestion here is the solution..<br>- solution -<br>set chan [lindex [split $text "#"]1]<br>set chan [lindex [split $text]0]<br>- solution -<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Feb 22, 2002 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-11T12:26:00-04:00</updated>

		<published>2002-02-11T12:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4470#p4470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4470#p4470"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4470#p4470"><![CDATA[
Well, I looked at that angelina.tc file and.. is stil not the thing I'm looking for to make. Well, Wen a nick joins a channel adds to that users variable and when I say .next (pub or dcc) to give voice to the first, then erase that nick from the users variable. When I say .next to repeat the proces like the previous. On a nick/kick/part/quit to do that check if the nick is in users variable to remove it, and if is a nick change to add the new nick at the end or replace in the users variable the old nick with the new one. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> I don't have anought time to make my tcl right now cos I got some exams and.. not so much time to think at that tcl. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> After I finish my sesions (faculty one) I'll make this like I want. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> I'll wayt for any other sugestions related about this. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Thx again!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 11, 2002 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-11T12:18:00-04:00</updated>

		<published>2002-02-11T12:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4469#p4469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4469#p4469"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4469#p4469"><![CDATA[
I sow that link, but was to late.. I just pushed the Submit button.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Hahahaha.. I'll see that upgrade. Thx! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 11, 2002 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-02-10T19:07:00-04:00</updated>

		<published>2002-02-10T19:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4457#p4457</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4457#p4457"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4457#p4457"><![CDATA[
... and Petersen gave you a link for your own question:<br><blockquote class="uncited"><div>PS: Do you know a link where I can read about splits and lrange and the rest of this? This will be nice and very helpful for me.</div></blockquote>As a last message on this topic, the angelina.tcl is now updated to include also PUB commands. If you have some 5 spare minutes while scripting your heavy bookkeeping caesar.tcl, load the angelina.tcl and test it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>&lt;font size=-1&gt;[ This Message was edited by: egghead on 2002-02-10 16:10 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Feb 10, 2002 7:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-10T12:26:00-04:00</updated>

		<published>2002-02-10T12:26:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4445#p4445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4445#p4445"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4445#p4445"><![CDATA[
Well, Petersen I was talking about the tcl made by egghead. Thx for the link. Thx again egghead for the tip. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Feb 10, 2002 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-02-08T14:18:00-04:00</updated>

		<published>2002-02-08T14:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4397#p4397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4397#p4397"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4397#p4397"><![CDATA[
<blockquote class="uncited"><div>I was thinking to use "foreach" on the nick/part/kick/quit event to check</div></blockquote>If you keep a list of $users, check out the [lsearch] command at the scriptics site, instead of the foreach.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Feb 08, 2002 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-02-08T13:05:00-04:00</updated>

		<published>2002-02-08T13:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4396#p4396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4396#p4396"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4396#p4396"><![CDATA[
the tcl manual maybe?<br><a href="http://www.scriptics.com/man/tcl8.3/TclCmd/contents.htm" class="postlink">http://www.scriptics.com/man/tcl8.3/TclCmd/contents.htm</a><br><br>has all you need to know about splits, list functions, etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Fri Feb 08, 2002 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-08T13:03:00-04:00</updated>

		<published>2002-02-08T13:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4395#p4395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4395#p4395"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4395#p4395"><![CDATA[
I looked at that tcl and is not what I needed. That is no voice for some nicks or something like this, as I understand.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Feb 08, 2002 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-08T12:43:00-04:00</updated>

		<published>2002-02-08T12:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4394#p4394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4394#p4394"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4394#p4394"><![CDATA[
I was thinking to use "foreach" on the nick/part/kick/quit event to check if that nick who do that is on that variable ($users), and if is in there to remove it from the list, to split that $users again and remove it. On each event (nick/part/kick/quit) to run a proces to see who is not on channel. I'll add a if with is a user or is him. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>Notice that my .next is a pub command not a party line command. For this command I was thinking to use: if he has @ in there and if that nick in on the channel to give him voice, else do that check until a nick is on channel. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Any other sugestion?<br><br>PS: Do you know a link where I can read about splits and lrange and the rest of this? This will be nice and very helpful for me. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Thx!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Feb 08, 2002 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-02-07T17:07:00-04:00</updated>

		<published>2002-02-07T17:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4380#p4380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4380#p4380"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4380#p4380"><![CDATA[
Happy TCLing <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> Enjoy!<br><br>&lt;font size=-1&gt;[ This Message was edited by: egghead on 2002-02-07 14:07 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Feb 07, 2002 5:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-07T16:43:00-04:00</updated>

		<published>2002-02-07T16:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4378#p4378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4378#p4378"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4378#p4378"><![CDATA[
Well.. Keep in touch and I'll keep in my mind your sugestions. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 07, 2002 4:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-07T16:37:00-04:00</updated>

		<published>2002-02-07T16:37:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4377#p4377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4377#p4377"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4377#p4377"><![CDATA[
Well.. I got this .next ideea for a channel that is leanding eggdrops, that is not my alter ego. I'm a boy not a girl. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> I'll use that [lappend] thing if I know much of this. Any link or something for this? I wasn't so sure about [lrange $users 1 end].. so that's wy I asked about this. Thx! <br>This .next thing is only for 1 channel.<br>A.. oups.. I forgot to remove that "next_chg", there was something more and I removed and forgot it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>Nick changes.. humm.. well.. I'll add that 2 and a chk of if that nick is a user. Well onest I got to do one for: kick/part/quit.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> .. a bookkeeping..<br><br>Well I'll throw an eye on that tcl you made for that girl. I'll think if I'll continue with my tcl or I'll "update" for my needs. Thx!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 07, 2002 4:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-07T16:18:00-04:00</updated>

		<published>2002-02-07T16:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4375#p4375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4375#p4375"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4375#p4375"><![CDATA[
Well.. here are my answers.<br><br>1) #chan is not the real name of channel, this is for the moment.<br>2) I want to extract from the $text only the name of the channel. To split that $text and make a variable with the name of the channel. <br>3) No I want to make a variable with his name, to use it.<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 07, 2002 4:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-02-07T16:03:00-04:00</updated>

		<published>2002-02-07T16:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4373#p4373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4373#p4373"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4373#p4373"><![CDATA[
Caesar, Indeed there are a couple of suggestions:<br><br>1. there are three questions asked on the previous topic, which you left unanswered.<br><br>2. When changing the topic, open a new topic on the board.<br><br>Suggestions for your "new script":<br><br>3. The functionality you want seems close to what someone else (or your alter ego) wanted:<br><a href="http://forum.egghelp.org/viewtopic.php?topic=939&amp;forum=2&amp;8" class="postlink">http://forum.egghelp.org/viewtopic.php? ... &amp;forum=2&amp;8</a><br><br>4. I've implement the above using your method of bookkeeping a list, and it is doable. But using a list, requires extensive bookkeeping.<br>Suppose a stray of 100 clones joins and parts your channel 20 times. Your variable $users will grow. The bookkeeping you need to do is on JOIN/PART/SIGN and maybe SPLT/REJN.<br><br>My suggestion is not to do it this way.<br><br>Check out:<br><a href="http://www.geocities.com/eggheadtcl/angelina.tcl.txt" class="postlink">http://www.geocities.com/eggheadtcl/angelina.tcl.txt</a><br>This script can be easily modified to bind to a MSG trigger. The putdcc can be replaced by puthelp NOTICEs.<br><br>Anyway, if you continue it your own way... <br><br>5. In your script you mix list and string.<br>For example you use: set users "$users $nick". If you want to keep a list use [lappend].<br>Suggestion: don't mix lists and strings. It will give you headegg.<br> <br>6. Apart from testing for [onchan], check that the bot is op [botisop]. It doesn't make sense to serve +v if the bot isn't op.<br><br>7. If your bot is on more than 1 channel, you need to keep track of users on a channel by channel basis.<br><br>8. If you want to remove the first item from a list use the [lrange $list 1 end] or simply cut the first item from the list [lreplace $list 0 0]<br><br>9. Below your putserv, there is a "next_chg". It seems you must omit this one. Otherwise "next_chg" is called twice upon one .next command.<br><br>10. O yeah, for the bookkeeping part: NICK changes must also be tracked...<br><br>11. People with +o don't need to be voiced. Unless you are generous.<br><br>12. And more bookkeeping... people getting KICKed should also be tracked...<br><br>There is probably more, and there are prolly some errors in my message... but too big headegg now... (or is it a troll anyway? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>&lt;font size=-1&gt;[ This Message was edited by: egghead on 2002-02-07 13:05 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Feb 07, 2002 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-02-07T15:18:00-04:00</updated>

		<published>2002-02-07T15:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=4370#p4370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=4370#p4370"/>
		<title type="html"><![CDATA[Sugestion..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=4370#p4370"><![CDATA[
I think I "set voice [lindex $users 1]" is wrong.. this wants to split from all $users the first nick.<br>At the "set users something in here.." I'm tryng to split from the $users from the first nick to the end..<br>O well corect me if I'm wrong. I'll apreciate this. Thx!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 07, 2002 3:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
