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

	<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>2010-09-14T20:10:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2010-09-14T20:10:50-04:00</updated>

		<published>2010-09-14T20:10:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94388#p94388</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94388#p94388"/>
		<title type="html"><![CDATA[Too many connections in server MySQL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94388#p94388"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - * Word:check proc Word:check {nick host hand chan text} {    if {![channel get $chan badword]} { return 0 }    if {[isop $nick]} {return 0}    if {[matchattr $hand o|o $chan]} { return 0 }    set conx [getConnection]    set sqltext [::mysql::escape "SELECT * FROM ExceptWord where '$text' LIKE Mot"]    set wordcheck [mysqlsel $conx $sqltext]    if {$wordcheck  &gt; 0} {putlog "$text existant" ; return 0}    set sqltext [::mysql::escape "SELECT * FROM ExceptWord where '$text' LIKE Badword"]    set Badwordcheck [mysqlsel $conx $sqltext]    if {$Badwordcheck  &gt; 0} {       set why [mysqlsel $conx "SELECT Raison FROM BadWord WHERE '$text' LIKE Badword"]       if {[llength $why] &gt; 0} {          set ban "*!*[string range $host [string first @ $host] e]"          putserv "PRIVMSG X :ban $chan $ban 5 75 [lindex $why 0]"       }       return 0    }   # here   mysql::close $conx   #  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Tue Sep 14, 2010 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-09-14T18:49:52-04:00</updated>

		<published>2010-09-14T18:49:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94386#p94386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94386#p94386"/>
		<title type="html"><![CDATA[Too many connections in server MySQL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94386#p94386"><![CDATA[
I have placed after return and the same message<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Tue Sep 14, 2010 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2010-09-14T18:03:10-04:00</updated>

		<published>2010-09-14T18:03:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94385#p94385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94385#p94385"/>
		<title type="html"><![CDATA[Too many connections in server MySQL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94385#p94385"><![CDATA[
Hi,<br><br>Your code close the connection only if llenght $why is greater than 0. I suggest put mysql::close just before the last close-brace.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Tue Sep 14, 2010 6:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-09-14T14:35:28-04:00</updated>

		<published>2010-09-14T14:35:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94382#p94382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94382#p94382"/>
		<title type="html"><![CDATA[Too many connections in server MySQL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94382#p94382"><![CDATA[
Hello I tried to use mysql for storing data, but I encountered this problem<br><blockquote class="uncited"><div>Tcl error [Channel:check]: mysql::connect/db server: Trop de connections</div></blockquote>This is code<div class="codebox"><p>Code: </p><pre><code>bind pubm - * Word:checkproc Word:check {nick host hand chan text} {if {![channel get $chan badword]} { return 0 }if {[isop $nick]} {return 0}if {[matchattr $hand o|o $chan]} { return 0 }set conx [getConnection]set sqltext [::mysql::escape "SELECT * FROM ExceptWord where '$text' LIKE Mot"]set wordcheck [mysqlsel $conx $sqltext]if {$wordcheck  &gt; 0} {putlog "$text existant" ; return 0}set sqltext [::mysql::escape "SELECT * FROM ExceptWord where '$text' LIKE Badword"]set Badwordcheck [mysqlsel $conx $sqltext]if {$Badwordcheck  &gt; 0} {set why [mysqlsel $conx "SELECT Raison FROM BadWord WHERE '$text' LIKE Badword"]if {[llength $why] &gt; 0} {set ban "*!*[string range $host [string first @ $host] e]"putserv "PRIVMSG X :ban $chan $ban 5 75 [lindex $why 0]"mysql::close $conx}return 0}}</code></pre></div>there must be a way to close the open connection thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Tue Sep 14, 2010 2:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
