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

	<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>2005-12-20T00:02:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-20T00:02:15-04:00</updated>

		<published>2005-12-20T00:02:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58496#p58496</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58496#p58496"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58496#p58496"><![CDATA[
what do you care about mySQL's interpretation of *? you don't have WHERE clause anyway<br><br>if *'s come back to you as you saved them, I fail to see the problem here<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Dec 20, 2005 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-12-19T12:50:45-04:00</updated>

		<published>2005-12-19T12:50:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58486#p58486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58486#p58486"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58486#p58486"><![CDATA[
mysql use % as wildcard, not *<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Dec 19, 2005 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[S0nnY]]></name></author>
		<updated>2005-12-19T05:07:06-04:00</updated>

		<published>2005-12-19T05:07:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58467#p58467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58467#p58467"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58467#p58467"><![CDATA[
<blockquote class="uncited"><div>"[hosts:get]" &lt;== returns all added hosts in the database ("examp@*.org"  "*@test.users.quakenet.org"</div></blockquote>a * which is returned from the mysqdatabase is "marked" as "normal" sign and not as wildcard. this is my problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5425">S0nnY</a> — Mon Dec 19, 2005 5:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-19T03:58:50-04:00</updated>

		<published>2005-12-19T03:58:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58466#p58466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58466#p58466"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58466#p58466"><![CDATA[
so what's the problem, you don't get *'s back from db? what did you put there and what did you get back using [hosts:get]?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 19, 2005 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[S0nnY]]></name></author>
		<updated>2005-12-19T03:05:35-04:00</updated>

		<published>2005-12-19T03:05:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58463#p58463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58463#p58463"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58463#p58463"><![CDATA[
Ok here is a split of the ignore check code <br><br>$host ==&gt; <a href="mailto:examp@example.users.quakenet.org">examp@example.users.quakenet.org</a><div class="codebox"><p>Code: </p><pre><code>    set ign(hosts) "[hosts:get]" &lt;== returns all added hosts in the database ("examp@*.org"  "*@test.users.quakenet.org" for example)  foreach h0st $ign(hosts) {    if {[string match -nocase "$h0st" $host]} {      return 1    } else {      return 0    }  }proc hosts:get { } {  global ign  set sqlhand [mysqlconnect -host $ign(ip) -user $ign(user) -password $ign(pass)]  mysqluse $sqlhand $ign(tab)  set return "[mysqlsel $sqlhand "SELECT host FROM $ign(ignoredb)" -list]"  mysqlclose $sqlhand  return $return}</code></pre></div>the * is not recognized as wildcard<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5425">S0nnY</a> — Mon Dec 19, 2005 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-19T02:29:11-04:00</updated>

		<published>2005-12-19T02:29:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58462#p58462</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58462#p58462"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58462#p58462"><![CDATA[
post code &amp; log<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Dec 19, 2005 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[S0nnY]]></name></author>
		<updated>2005-12-19T00:43:00-04:00</updated>

		<published>2005-12-19T00:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58458#p58458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58458#p58458"/>
		<title type="html"><![CDATA[Problem with mysql and wildcards]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58458#p58458"><![CDATA[
Hello, <br><br>I have a small problem. I want to create an "global ignore function" for a game script. <br>All my code works fine but i want to add hosts in the database containing a wildcard "*!*@Test*.org" for example. <br>But when the bots connects to the database an gets the informations the check the user host the * isn't a wildcard anymore also "test!<a href="mailto:test@Test.users.quakenet.org">test@Test.users.quakenet.org</a>" is not matched.<br> <br>How can I convert the sign * back to a wildcard ? <br><br>greetz <br>S0nnY<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5425">S0nnY</a> — Mon Dec 19, 2005 12:43 am</p><hr />
]]></content>
	</entry>
	</feed>
