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

	<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-06-18T14:13:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-18T14:13:26-04:00</updated>

		<published>2007-06-18T14:13:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73651#p73651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73651#p73651"/>
		<title type="html"><![CDATA[MSG in a chan, MSG -&gt; other chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73651#p73651"><![CDATA[
Think you've missed a space between the target (channel), and the start of the message:<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #mychan:test $text abc"</code></pre></div>Most likely, it should be<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg #mychan :test $text abc"</code></pre></div>Also, the if-statement within the proc is kinda pointless, as it will (almost) always match when the binding triggers (unless "word" is part of the channelname)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Jun 18, 2007 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-18T13:48:14-04:00</updated>

		<published>2007-06-18T13:48:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73649#p73649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73649#p73649"/>
		<title type="html"><![CDATA[MSG in a chan, MSG -&gt; other chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73649#p73649"><![CDATA[
just to note, setting comando and comando2 to the same is wrong, and also why set comando2 to text when you can just use $text itself...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Mon Jun 18, 2007 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Redento]]></name></author>
		<updated>2007-06-17T13:35:13-04:00</updated>

		<published>2007-06-17T13:35:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73618#p73618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73618#p73618"/>
		<title type="html"><![CDATA[MSG in a chan, MSG -&gt; other chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73618#p73618"><![CDATA[
<blockquote class="uncited"><div>pub doesn't allow a wildcard, use pubm.</div></blockquote>Well, i did that, but unluckily no luck yet.<br><br>Been searching in threads for more than a while, but no way. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I did modify the proc many times, doing various test, though. What i did, or at least, one of the many tries.<div class="codebox"><p>Code: </p><pre><code>bind pubm - "*word*" proceduraproc procedura { nick host hand keyword text} {  if {[string match "*word*" $text]} {putserv "privmsg #mychan:test $text abc"}      }</code></pre></div>Still doesn't work. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9060">Redento</a> — Sun Jun 17, 2007 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-06-13T12:22:58-04:00</updated>

		<published>2007-06-13T12:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73529#p73529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73529#p73529"/>
		<title type="html"><![CDATA[MSG in a chan, MSG -&gt; other chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73529#p73529"><![CDATA[
pub doesn't allow a wildcard, use pubm.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Wed Jun 13, 2007 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Redento]]></name></author>
		<updated>2007-06-13T09:03:37-04:00</updated>

		<published>2007-06-13T09:03:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73522#p73522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73522#p73522"/>
		<title type="html"><![CDATA[MSG in a chan, MSG -&gt; other chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73522#p73522"><![CDATA[
Hi all <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I've been learning TCL for a few times, but not as much as i can complete my first little tcl of my own.<br><br>Aim is simple: when a *text* is typed in a chan, eggdrop has to report it, as it is, in another chan. <br><br>What i did so far is this:<div class="codebox"><p>Code: </p><pre><code>bind pub - * proceduraproc procedura {nick host handle chan text} {  set comando [lindex [split $text " "] 0]  set comando2 [lindex [split $text " "] 0]  if {($comando == "TEST") &amp;&amp; ($nick == "mynick") &amp;&amp; ($chan == "#mychan")} {set $comando2 == $text    putquick "privmsg #otherchan: $comando2 $nick $text test123"    return 0    }</code></pre></div>I've even tried creating a temporary txt file, but it's still too much for my actuals knowledge. If someone can point me out for a example tcl where  i might learn from, or to help me with above one.<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9060">Redento</a> — Wed Jun 13, 2007 9:03 am</p><hr />
]]></content>
	</entry>
	</feed>
