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

	<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>2006-05-18T18:18:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-18T18:18:15-04:00</updated>

		<published>2006-05-18T18:18:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63155#p63155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63155#p63155"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63155#p63155"><![CDATA[
yaaaaaaa! Thanks mate <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>it worked <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=5982">iamdeath</a> — Thu May 18, 2006 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-05-17T20:39:25-04:00</updated>

		<published>2006-05-17T20:39:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63137#p63137</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63137#p63137"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63137#p63137"><![CDATA[
I do not think Sir_Fz meant outside of the proc, by "at the end of the ac:bonus_points proc" he meant just before the last closing brace. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>  } }unset baccess($user)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed May 17, 2006 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-17T18:57:14-04:00</updated>

		<published>2006-05-17T18:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63136#p63136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63136#p63136"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63136#p63136"><![CDATA[
This is what I did:<br><div class="codebox"><p>Code: </p><pre><code>proc ac:bonus_points {nick uhost hand arg dest} { global ac baccess notifyusers if {![isbotnick $dest]} {return 0} if {![string equal -nocase X $nick]} {return 0} set user [string tolower [lindex [split $arg] 1]] if {![info exists baccess($user)]} {return 0} foreach {handle reason} $baccess($user) {break} set access [lindex [split $arg] 3] puthelp "PRIVMSG X :MODINFO $ac(chan) ACCESS $user [expr {$access + 5}]" if {$notifyusers != "" &amp;&amp; $notifyusers != " "} {  foreach notfuser $notifyusers {   sendnote IDA_SYSTEM $notfuser "Bonus +5 given to $user by $handle in $ac(chan). The reason was: $reason"  } }}unset baccess($user)</code></pre></div><br>The bot crashed after .rehash<br><div class="codebox"><p>Code: </p><pre><code>[03:56] &lt;Cricket`-&gt; [04:00] can't read "user": no such variable[03:56] &lt;Cricket`-&gt;     while executing[03:56] &lt;Cricket`-&gt; "unset baccess($user)"[03:56] &lt;Cricket`-&gt;     (file "bonus.tcl" line 37)[03:56] &lt;Cricket`-&gt;     invoked from within[03:56] &lt;Cricket`-&gt; "source bonus.tcl"[03:56] &lt;Cricket`-&gt;     (file "Cricket.conf" line 251)[03:56] &lt;Cricket`-&gt; [04:00] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed May 17, 2006 6:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-17T18:55:00-04:00</updated>

		<published>2006-05-17T18:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63135#p63135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63135#p63135"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63135#p63135"><![CDATA[
ok let me try<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed May 17, 2006 6:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-17T18:53:06-04:00</updated>

		<published>2006-05-17T18:53:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63134#p63134</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63134#p63134"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63134#p63134"><![CDATA[
Add<div class="codebox"><p>Code: </p><pre><code>unset baccess($user)</code></pre></div>at the end of the ac:bonus_points proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed May 17, 2006 6:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2006-05-17T18:46:10-04:00</updated>

		<published>2006-05-17T18:46:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63133#p63133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63133#p63133"/>
		<title type="html"><![CDATA[stop continution. [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63133#p63133"><![CDATA[
Hi, <br><br>I've been posting questons regarding this small script I've created it with the help of you guys, now there is only 1 problem coming up.<br><br>The code is:<br><div class="codebox"><p>Code: </p><pre><code>set ac(chan) "#channel"set notifyusers "owner"set ac(bot_username) "username"set ac(owner_username) "owner"bind dcc n bonus ac:bonusbind notc - "USER: * ACCESS: *" ac:bonus_pointsproc ac:bonus {hand idx arg} { global ac baccess set arg [split $arg] set username1 [lindex $arg 0] set reason1 [lrange $arg 1 end] if {$username1 == ""} { putdcc $idx "Syntax: .bonus &lt;CService Username&gt; &lt;Reason&gt;"; return } if {$username1 == "$ac(bot_username)"} { putdcc $idx "You can't bonus me or I can't modify myself."; return } if {$username1 == "$ac(owner_username)"} { putdcc $idx "Do you think $ac(owner_username) needs modification?, get a life."; return } if {$reason1 == ""} { putdcc $idx "Syntax: .bonus &lt;CService Username&gt; &lt;Reason&gt;. You're required to mention reason for bonus."; return } puthelp "PRIVMSG X :ACCESS $ac(chan) $username1" set baccess([string tolower $username1]) [list $hand $reason1]}proc ac:bonus_points {nick uhost hand arg dest} { global ac baccess notifyusers if {![isbotnick $dest]} {return 0} if {![string equal -nocase X $nick]} {return 0} set user [string tolower [lindex [split $arg] 1]] if {![info exists baccess($user)]} {return 0} foreach {handle reason} $baccess($user) {break} set access [lindex [split $arg] 3] puthelp "PRIVMSG X :MODINFO $ac(chan) ACCESS $user [expr {$access + 5}]" if {$notifyusers != "" &amp;&amp; $notifyusers != " "} {  foreach notfuser $notifyusers {   sendnote IDA_SYSTEM $notfuser "Bonus +5 given to $user by $handle in $ac(chan). The reason was: $reason"  } }}</code></pre></div>Now the thing is, when I type: <br><blockquote class="uncited"><div>.bonus &lt;CService USername&gt; &lt;Reason&gt;</div></blockquote>The bot is increasing/modifying +5 to him BUT whenver bot recieves this message, the bot starts modifying other people too.<br><div class="codebox"><p>Code: </p><pre><code>-X- USER: username ACCESS: 123 LU-X- CHANNEL: #channel -- AUTOMODE: OP-X- LAST SEEN: 0 days, 00:07:07 ago.-X- End of access list</code></pre></div>So the bot will increase + 5 to " username ".. When the bot should'nt, it should only modify which is given in the partyline. The continuation of this script should stop, is that possible?. Now you must be asking why will the bot get that X notice again and again, well I've another TCL going on, which shows that data to the bot of all the usernames every minute.<br><br>I will be grateful to you if you kindly fix / help me out of it.<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Wed May 17, 2006 6:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
