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

	<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>2008-03-29T17:09:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-29T17:09:39-04:00</updated>

		<published>2008-03-29T17:09:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82074#p82074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82074#p82074"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82074#p82074"><![CDATA[
Works great! THANK YOU! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Mar 29, 2008 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-03-29T16:38:37-04:00</updated>

		<published>2008-03-29T16:38:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82073#p82073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82073#p82073"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82073#p82073"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msgm - {*} relaybind notc - {*} relayproc relay {nick host hand text {dest ""}} {    if {([info exists dest] || $dest != "") &amp;&amp; [isbotnick $dest]} {        putserv "PRIVMSG #Satanic :--- Received NOTICE --- $nick ($nick!$host) = $text"   } else {        putserv "PRIVMSG #Satanic :--- Received PRIVMSG --- $nick ($nick!$host) = $text"    }}</code></pre></div>not tested!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Mar 29, 2008 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-29T16:01:58-04:00</updated>

		<published>2008-03-29T16:01:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82071#p82071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82071#p82071"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82071#p82071"><![CDATA[
Ok... I'm still getting the same error, and I've read the TCL commands file...<br><br>I do not understand what I'm doing wrong...<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind notc - * noticeproc notice {nick uhost hand text {dest ""}} {global botnick; if {$dest == ""} {set dest $botnick}set themessage [lrange $text 0 end]putserv "PRIVMSG #Satanic :--- Recieved NOTICE --- $nick = $themessage"}</code></pre></div><blockquote class="uncited"><div>[16:02] Tcl error [NOTICE]: wrong # args: should be "NOTICE text"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Mar 29, 2008 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2008-03-26T18:41:05-04:00</updated>

		<published>2008-03-26T18:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82039#p82039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82039#p82039"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82039#p82039"><![CDATA[
The command mentioned in your error message doesn't match the name of your proc. Maybe you need to restart to get rid of old binds? Also, you should split $text before you use lrange on it. (or remove that part entirely, as you probably don't need it)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Mar 26, 2008 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-26T15:28:47-04:00</updated>

		<published>2008-03-26T15:28:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82037#p82037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82037#p82037"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82037#p82037"><![CDATA[
I tried putting what you put and it didn't work, then I tried this;<br><div class="codebox"><p>Code: </p><pre><code>proc notic { nick uhost handle text dest } {global botnickset themessage [lrange $text 0 end]if {$botnick == $dest} {putserv "PRIVMSG #Satanic :--- Recieved NOTICE --- $nick = $themessage"}}</code></pre></div>and that didn't work, and I get this error now;<br><blockquote class="uncited"><div>[15:30] Tcl error [NOTICE]: wrong # args: should be "NOTICE text"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Wed Mar 26, 2008 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2008-03-26T06:19:00-04:00</updated>

		<published>2008-03-26T06:19:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82034#p82034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82034#p82034"/>
		<title type="html"><![CDATA[Re: Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82034#p82034"><![CDATA[
Read doc/tcl-commands.doc<blockquote class="uncited"><div>bind msgm &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt; <br><br>bind notc &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;text&gt; &lt;dest&gt; </div></blockquote>...As you can see, there's no "chan". And keep in mind that the notc bind is triggered by public notices too, so you have to implement some sort of check to make sure you only relay notices sent to the bot. (Eg.: if {[isbotnick $dest]} {relay})<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Mar 26, 2008 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-26T05:23:57-04:00</updated>

		<published>2008-03-26T05:23:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82033#p82033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82033#p82033"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82033#p82033"><![CDATA[
Ok..... But, can someone help me please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Wed Mar 26, 2008 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-25T21:08:13-04:00</updated>

		<published>2008-03-25T21:08:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82029#p82029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82029#p82029"/>
		<title type="html"><![CDATA[Re: Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82029#p82029"><![CDATA[
<blockquote class="uncited"><div>putserv "PRIVMSG #Satanic :$themessage"<br>putserv "PRIVMSG #Satanic :$themessage"</div></blockquote>It just doesn't seem right to help the devil..<br><br>Next time, for better effect.. and to show others you don't dance naked in chicken blood while chanting verses from the bible backwards, omit the channel your referencing and just call it #somechan...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Mar 25, 2008 9:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-03-25T16:43:58-04:00</updated>

		<published>2008-03-25T16:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82028#p82028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82028#p82028"/>
		<title type="html"><![CDATA[Relay Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82028#p82028"><![CDATA[
I want the script to send all /msg's and /notice's messaged to a channel said by the bot, here is what I have, but fails to work, but no errors;<br><br><br><blockquote class="uncited"><div>bind msgm - "*" PM<br>bind notc - "*" notice<br><br><br><br><br>proc PM { nick uhost handle chan text } {<br>set themessage [lrange $text 0 end]<br>putserv "PRIVMSG #Satanic :$themessage"<br>}<br><br>proc notic { nick uhost handle chan text dest } {<br>set themessage [lrange $text 0 end]<br>putserv "PRIVMSG #Satanic :$themessage"<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Tue Mar 25, 2008 4:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
