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

	<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-04-06T19:39:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-06T19:39:00-04:00</updated>

		<published>2002-04-06T19:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6039#p6039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6039#p6039"/>
		<title type="html"><![CDATA[need help ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6039#p6039"><![CDATA[
Mordred, thanks man it work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br>Realy appreciate the help .<br><p>Statistics: Posted by Guest — Sat Apr 06, 2002 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-06T05:10:00-04:00</updated>

		<published>2002-04-06T05:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6016#p6016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6016#p6016"/>
		<title type="html"><![CDATA[need help ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6016#p6016"><![CDATA[
This little piece was posted a little while back by TriPpen^KiSs. Basically it scans userhandles for a given value, in this example, a particular field in the users XTRA info. This should address the problem?<br><br>foreach n [userlist] { <br>if {[getuser $n XTRA] == "$value"} { <br>puthelp "PRIVMSG $nick : Scan has $n with XTRA of $value" <br>} <br><br>Both the check it's making on each user and the action it takes can easily be changed. So to take it further, then do a check on the "test1 test2 test3" field. Lets say this field is stored in one of the users XTRA OPSADDED field<br><br>set x [split [getuser $hand XTRA OPSADDED]]<br>set z ""<br>if {$x != ""} {<br>foreach y $x {<br> if {$y != "$nick"} {<br>  set z "$y $z"<br> }<br>}<br>if {$z != ""} {setuser $hand XTRA OPSADDED $z}<br>}<br><br><br>The final piece would look something like:<br><br>proc delmemrecord {exmember} {<br>foreach n [userlist] { <br>set x [split [getuser $n XTRA OPSADDED]]<br>set t 0<br>if {$x != ""} {<br>set t 1<br>set z ""<br>foreach y $x {<br> if {$y != "$exmember"} {<br>  set z "$y $z"<br> }<br>}<br>if {$t &gt; 0} {setuser $n XTRA OPSADDED $z}<br>}<br>} <br><br>&lt;font size=-1&gt;[ This Message was edited by: Mordred on 2002-04-06 05:13 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sat Apr 06, 2002 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-06T04:45:00-04:00</updated>

		<published>2002-04-06T04:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6014#p6014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6014#p6014"/>
		<title type="html"><![CDATA[need help ...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6014#p6014"><![CDATA[
Hi<br><br>I'm making a tcl that adds extra info line to the user who is adding. For example: user Lame adds user test1, then the bot writes a line in to the user Lame record that he has 1 user added and he's nick is test1 and every time when user Lame adds someone, the bot adds his nick to that info line. This looks like this <br><br>HANDLE    PASS NOTES FLAGS           LAST<br>Lame   yes      0 fhjmnoptx      09:23 <br>  Users: test1 test2 test3 ....<br><br>Ok thats fine but the problem comes when let say test2 is deleted form the bot and I need his nick to be deleted from the info line of the other user (Lame). How do I make the bot to delete test2 from the info line of user Lame and leave test1 and test3 still in place ? So after words when someone matches user Lame he'll find <br><br>HANDLE    PASS NOTES FLAGS           LAST<br>Lame   yes      0 fhjmnoptx      09:23 <br>  Users: test1 test3 ....<br><br>Got the idea ?<br>Any suggestions how to make that ?<br>Thanks in advance.<p>Statistics: Posted by Guest — Sat Apr 06, 2002 4:45 am</p><hr />
]]></content>
	</entry>
	</feed>
