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

	<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>2008-05-18T14:51:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-05-18T14:51:39-04:00</updated>

		<published>2008-05-18T14:51:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82973#p82973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82973#p82973"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82973#p82973"><![CDATA[
See this thread:<br><a href="http://forum.egghelp.org/viewtopic.php?t=9009&amp;start=3" class="postlink">http://forum.egghelp.org/viewtopic.php?t=9009&amp;start=3</a><br>Use the new function this creates as I have below:<div class="codebox"><p>Code: </p><pre><code> If {[throttled $id $duration]} {return 0} else {#something}</code></pre></div>$id = unique identifier for each individual, you tailor this to your whims<br>$duration = amount in seconds to ignore the user after their initial request.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun May 18, 2008 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-18T14:00:42-04:00</updated>

		<published>2008-05-18T14:00:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82972#p82972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82972#p82972"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82972#p82972"><![CDATA[
Right, tried to find some doc on throttled but nothing.<br>I have searched throttled. but didn't find anything about restriction?<br>because i need search restriction for my script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sun May 18, 2008 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-05-18T10:39:19-04:00</updated>

		<published>2008-05-18T10:39:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82967#p82967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82967#p82967"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82967#p82967"><![CDATA[
<a href="http://forum.egghelp.org/search.php" class="postlink">Search</a> for 'throttled'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun May 18, 2008 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-05-18T09:29:16-04:00</updated>

		<published>2008-05-18T09:29:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82964#p82964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82964#p82964"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82964#p82964"><![CDATA[
I continue.. I need to set how many times people can search, and if exceed ignore for 6hours!<br><br>I'm not sure how the "if exceed" would be done. Help appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sun May 18, 2008 9:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-04-26T14:06:27-04:00</updated>

		<published>2008-04-26T14:06:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82552#p82552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82552#p82552"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82552#p82552"><![CDATA[
When I see the code Sir_Fz pasted it answer all my answers.<br>I'm probably not that good to ask questions!<br>Thanks for explanation speechles..<br>I asked how the timer could be executed.. In the answer I was hoping to get this.<br>I appreciate your guys help, I'm sorry for my bad ass questions<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sat Apr 26, 2008 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-26T14:00:08-04:00</updated>

		<published>2008-04-26T14:00:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82551#p82551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82551#p82551"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82551#p82551"><![CDATA[
You're not being clear about what you want, I guess you want this:<div class="codebox"><p>Code: </p><pre><code>proc notice:search {nick uhost handle text {dest ""}} { global dbhandling sqltable chan2 sqltable2 if {$dest == ""} {set dest $::botnick} # check if nick is on #chan if {[onchan $nick $kanal2]} {  set site [lindex [split $text] 1]  # mysql...  set result [mysqlsel $dbhandling "SELECT url FROM $sqltable WHERE site='$site' LIMIT 1" -list]  foreach url $result {   timer 10 [list sql:insert $nick $url $site]   putserv "PRIVMSG $nick :$url"   putlog "$site searched by $nick"  } }}proc sql:insert {nick url site} { global dbhandling sqltable sqltable2 mysqlexec $dbhandling "DELETE FROM $sqltable WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable2 (site, url, nick) VALUES ('$site', '$url', '$nick')" putlog "$site moved $sqltable -&gt; $sqltable2"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Apr 26, 2008 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-04-26T14:00:32-04:00</updated>

		<published>2008-04-26T13:51:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82550#p82550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82550#p82550"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82550#p82550"><![CDATA[
Your failing to understand how tcl works entirely.<div class="codebox"><p>Code: </p><pre><code>timer 1 [list sql:insert $nick $site $url] </code></pre></div>This calls sql:insert if it is OUTSIDE any procedure and left in global space, it will be executed once and start the sql:insert procedure You can then place an additional timer calling sql:insert inside the actual sql:insert procedure so that this behavior will keep occuring at regular intervals. Understand?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Apr 26, 2008 1:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-04-26T13:19:58-04:00</updated>

		<published>2008-04-26T13:19:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82549#p82549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82549#p82549"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82549#p82549"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc notice:search {nick uhost handle text {dest ""}} { global dbhandling sqltable chan2 sqltable2 if {$dest == ""} {set dest $::botnick} # check if nick is on #chan if {[onchan $nick $kanal2]} {  set site [lindex [split $text] 1]  # mysql...  set result [mysqlsel $dbhandling "SELECT url FROM $sqltable WHERE site='$site' LIMIT 1" -list]  foreach url $result {   mysqlexec $dbhandling "DELETE FROM $sqltable WHERE url='$url'"   mysqlexec $dbhandling "INSERT INTO $sqltable2 (site, url) VALUES ('$site', '$url')"   putserv "PRIVMSG $nick :$url"   putlog "$site searched by $nick"   putlog "$site moved $sqltable -&gt; $sqltable2"  } }}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc sql:insert {nick site url} {global dbhandling mysqlexec $dbhandling "DELETE FROM $sqltable2 WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable (site, url, nick) VALUES ('$site', '$url', '$nick')"timer 1 [list sql:insert $nick $site $url]putlog "DONE"}</code></pre></div>How does proc sql:insert work since not any variables or anything call it?<br><br>Sorry about confusing questions. But this part is getting hard <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sat Apr 26, 2008 1:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-26T13:08:07-04:00</updated>

		<published>2008-04-26T13:08:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82548#p82548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82548#p82548"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82548#p82548"><![CDATA[
<blockquote class="uncited"><div>Can I ask what command that tells the proc sql:insert to execute those lines?</div></blockquote>What do you meant "what command?" it's called within the timer if that's what you mean.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Apr 26, 2008 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-04-26T12:11:31-04:00</updated>

		<published>2008-04-26T12:11:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82547#p82547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82547#p82547"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82547#p82547"><![CDATA[
Can I ask what command that tells the proc sql:insert to execute those lines?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sat Apr 26, 2008 12:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-26T11:37:24-04:00</updated>

		<published>2008-04-26T11:37:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82545#p82545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82545#p82545"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82545#p82545"><![CDATA[
It's more optimal to create a new procedure.<div class="codebox"><p>Code: </p><pre><code>proc sql:insert {nick site url} { global dbhandling mysqlexec $dbhandling "DELETE FROM $sqltable2 WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable (site, url, nick) VALUES ('$site', '$url', '$nick')"}</code></pre></div>and just call the timer like this<div class="codebox"><p>Code: </p><pre><code>timer 10 [list sql:insert $nick $site $url]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Apr 26, 2008 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-04-26T08:18:46-04:00</updated>

		<published>2008-04-26T08:18:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82543#p82543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82543#p82543"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82543#p82543"><![CDATA[
I thought it was necessary to use two foreach.<br><br>Example:<br><div class="codebox"><p>Code: </p><pre><code>timer 10 [list mysqlexec $dbhandling "DELETE FROM $sqltable2 WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable (site, url, nick) VALUES ('$site', '$url', '$nick')"]</code></pre></div>Will not work because timer can't do both(I heard).<br>I got two options: <br>-make timer in a proc<br>-make timer again under DELETE.<br>What is best? I writed this:<div class="codebox"><p>Code: </p><pre><code>proc timer:notice {nick uhost handle arg} {global dbhandling sqltable sqltable2timer 10 [list mysqlexec $dbhandling "DELETE FROM $sqltable2 WHERE url='$url'"]putlog "deleted from $sqltable2"timer 10 [list mysqlexec $dbhandling "INSERT INTO $sqltable (site, url) VALUES ('$site', '$url')"]putlog "added to $sqltable"}</code></pre></div>I'm trying, but don't know if this is working?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Sat Apr 26, 2008 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-25T20:51:47-04:00</updated>

		<published>2008-04-25T20:51:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82537#p82537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82537#p82537"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82537#p82537"><![CDATA[
You meant<div class="codebox"><p>Code: </p><pre><code>proc notice:search {nick uhost handle text {dest ""}} { global dbhandling sqltable chan2 sqltable2 if {$dest == ""} {set dest $::botnick} # check if nick is on #chan if {[onchan $nick $kanal2]} {  set site [lindex [split $text] 1]  # mysql...  set result [mysqlsel $dbhandling "SELECT url FROM $sqltable WHERE site='$site' LIMIT 1" -list]  foreach url $result {   mysqlexec $dbhandling "DELETE FROM $sqltable WHERE url='$url'"   mysqlexec $dbhandling "INSERT INTO $sqltable2 (site, url) VALUES ('$site', '$url')"   putserv "PRIVMSG $nick :$url"   putlog "$site searched by $nick"   putlog "$site moved $sqltable -&gt; $sqltable2"  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Apr 25, 2008 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ztian299]]></name></author>
		<updated>2008-04-25T14:44:36-04:00</updated>

		<published>2008-04-25T14:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82533#p82533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82533#p82533"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82533#p82533"><![CDATA[
Hrrm, looks like it won't work like it should<br>It only insert into column 'site' and leaves column 'url' blank?<br><div class="codebox"><p>Code: </p><pre><code># /notice bot searchproc notice:search {nick uhost handle text {dest ""}} {global dbhandling sqltable chan2 sqltable2if {$dest == ""} {set dest $::botnick}# check if nick is on #chanif {[onchan $nick $kanal2]} {set site [lindex [split $text] 1]set url [lindex [split $text] 2]# mysql...set result [mysqlsel $dbhandling "SELECT url FROM $sqltable WHERE site='$site' LIMIT 1" -list]foreach line $result {foreach move $result { mysqlexec $dbhandling "DELETE FROM $sqltable WHERE url='$url'" mysqlexec $dbhandling "INSERT INTO $sqltable2 (site, url) VALUES ('$site', '$url')"putserv "PRIVMSG $nick :$line"putlog "$site searched by $nick"putlog "$site moved $sqltable -&gt; $sqltable2"   }  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9874">ztian299</a> — Fri Apr 25, 2008 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-04-22T17:46:23-04:00</updated>

		<published>2008-04-22T17:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82492#p82492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82492#p82492"/>
		<title type="html"><![CDATA[bind notc not working[SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82492#p82492"><![CDATA[
I'm not sure if an event can be scheduled in MySQL, however it can surely be done using Tcl. You can either use timers or time binds.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Apr 22, 2008 5:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
