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

	<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>2009-05-31T05:52:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2009-05-31T05:52:49-04:00</updated>

		<published>2009-05-31T05:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89023#p89023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89023#p89023"/>
		<title type="html"><![CDATA[mysql $var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89023#p89023"><![CDATA[
Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sun May 31, 2009 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-05-30T11:54:58-04:00</updated>

		<published>2009-05-30T11:54:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89017#p89017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89017#p89017"/>
		<title type="html"><![CDATA[mysql $var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89017#p89017"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set txt [string map [list %nick $nick %host $host] [join $txt]]</code></pre></div>this will replace %nick and %host with the user's nickname and user@host respectively.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat May 30, 2009 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2009-05-30T09:26:55-04:00</updated>

		<published>2009-05-30T09:26:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89013#p89013</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89013#p89013"/>
		<title type="html"><![CDATA[mysql $var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89013#p89013"><![CDATA[
Thats not what i mean...<br><br>$nick var should be on mysql like<br><br>mysql output: "%nick talked with me (%host)"<br><br>Eggdrop selects that from DB and sendes "%nick talked with me (%host)" <br><br>i want it to send "Dude talked with me (Super!<a href="mailto:Dude@host.com">Dude@host.com</a>)"<br><br>------------<br>Confusing  <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=9777">garfwen</a> — Sat May 30, 2009 9:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2009-05-30T08:14:34-04:00</updated>

		<published>2009-05-30T08:14:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89012#p89012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89012#p89012"/>
		<title type="html"><![CDATA[mysql $var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89012#p89012"><![CDATA[
Include $nick in your output line:<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $nick :$nick $txt"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat May 30, 2009 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2009-05-30T05:11:20-04:00</updated>

		<published>2009-05-30T05:11:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89011#p89011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89011#p89011"/>
		<title type="html"><![CDATA[mysql $var]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89011#p89011"><![CDATA[
Hello<br><br>&lt;Dude&gt; getmsg<br>&lt;Bot&gt; Yeah its working<br><div class="codebox"><p>Code: </p><pre><code>bind msg - getmsg getmsgproc getmsg { nick host handle text } {global dbset txt [lindex [lindex [::mysql::sel $db "SELECT language FROM lang WHERE cmd='works'" -list] 0] 0]putserv "privmsg $nick :$txt"}</code></pre></div>In this case txt will return "Yeah its working".<br><br>Is it possible to put a var like $nick on my mysql? so it can return "Dude Yeah its working"<br><br>&lt;Dude&gt; getmsg<br>&lt;Bot&gt; Dude Yeah its working<br><br>(sorry for my bad english)<br><br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sat May 30, 2009 5:11 am</p><hr />
]]></content>
	</entry>
	</feed>
