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

	<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>2007-10-30T15:45:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-10-30T15:45:15-04:00</updated>

		<published>2007-10-30T15:45:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77287#p77287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77287#p77287"/>
		<title type="html"><![CDATA[The best way to do this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77287#p77287"><![CDATA[
Thank you very much! <br><br>I'll look into that!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Tue Oct 30, 2007 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-10-30T15:43:58-04:00</updated>

		<published>2007-10-30T15:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77286#p77286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77286#p77286"/>
		<title type="html"><![CDATA[The best way to do this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77286#p77286"><![CDATA[
Lets say you have a mysql database named akicks, with the fields mask, set.<br><div class="codebox"><p>Code: </p><pre><code>bind time - "?0 * * * *" akick:updateproc akick:update {min hour day month year} {    if {[catch {[set mysql [mysql::connect -user username -password mypassword -host localhost -port 3306 -db akicks]} err]} {        putlog "mysql error"        foreach line [split $err \n] { putlog "$line" }        putlog "end of error"    } else {        set result [mysql::sel $mysql "SELECT * FROM `akicks` WHERE `set` = '0';" -list]        if {$result == ""} { return }        foreach akick $result {            if {$akick == ""} { return }            set mask [lindex [split $akick] 0]            putlog "adding '$mask' to akick list for #mychannel"            putquick "PRIVMSG ChanServ :akick #mychannel add $mask"            mysql::exec $mysql "UPDATE `akicks` SET `set` TO '1' WHERE `mask` = '$mask';"        }        putlog "updated akicks"    }}</code></pre></div>This is just an example, not guaranteed working![/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Oct 30, 2007 3:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-10-30T13:02:25-04:00</updated>

		<published>2007-10-30T13:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77279#p77279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77279#p77279"/>
		<title type="html"><![CDATA[The best way to do this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77279#p77279"><![CDATA[
Yes, MySQL. <br><br>Can you explain me how to do this in a more detailled manner?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Tue Oct 30, 2007 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-30T13:00:53-04:00</updated>

		<published>2007-10-30T13:00:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77278#p77278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77278#p77278"/>
		<title type="html"><![CDATA[The best way to do this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77278#p77278"><![CDATA[
are you using a SQL database? if yes, you'd better use the mysql package to access directly to the datas.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Oct 30, 2007 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[leandro]]></name></author>
		<updated>2007-10-30T12:50:36-04:00</updated>

		<published>2007-10-30T12:50:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77276#p77276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77276#p77276"/>
		<title type="html"><![CDATA[The best way to do this?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77276#p77276"><![CDATA[
Hi.<br><br>I'm creating an online database of akicks from a channel. Akicks can be added to the database via a webserver.<br><br>I display the newly added akicks on a webpage, which then the eggdrop must read, add them in chanserv, and mark them on the webserver.<br><br>But what is the best way to do this? Should I save the whole webpage to a .txt, then loop through the file, opening and closing a connection for each akick that needs to be set? Or should I do something else?<br><br><br>Thanks for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9041">leandro</a> — Tue Oct 30, 2007 12:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
