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

	<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>2004-12-14T21:00:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-14T21:00:48-04:00</updated>

		<published>2004-12-14T21:00:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44021#p44021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44021#p44021"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44021#p44021"><![CDATA[
<blockquote class="uncited"><div>not quite final (string equal wont return 1).</div></blockquote>LOL, I've been busy alot, a few months, seems I forgot the touch. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>#Set the channel to catch notices fromset chan1 "#mychan"#Set the channel to send notices onset chan2 "#yourchan"#Set the matching text to send the notices onset relaymatch "Entries are now open"bind notc - "*" relay:noticeproc relay:notice {nick uhost hand text {chan ""}} { global chan1 chan2 relaymatch  if {([string equal -nocase $chan1 $chan]) &amp;&amp; ([string match -nocase "*$relaymatch*" $text])} {   putserv "NOTICE $chan2 :$text"   return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Dec 14, 2004 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-12-14T09:20:16-04:00</updated>

		<published>2004-12-14T09:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44001#p44001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44001#p44001"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44001#p44001"><![CDATA[
not quite final (string equal wont return 1).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Tue Dec 14, 2004 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-14T07:43:31-04:00</updated>

		<published>2004-12-14T07:43:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43996#p43996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43996#p43996"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43996#p43996"><![CDATA[
Sorry, I might have not read his second post, because he didn't mention about matching a specific text in the first one, then only relaying the notice to the other channel. <br><br>Anyway that it simple and here is the final code:<br><div class="codebox"><p>Code: </p><pre><code>#Set the channel to catch notices fromset chan1 "#mychan"#Set the channel to send notices onset chan2 "#yourchan"#Set the matching text to send the notices onset relaymatch "Entries are now open"bind notc - "*" relay:noticeproc relay:notice {nick uhost hand text {chan ""}} { global chan1 chan2 relaymatch  if {([string equal -nocase "*$chan1*" $chan]) &amp;&amp; ([string match -nocase "*$relaymatch*" $text])} {   putserv "NOTICE $chan2 :$text"   return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Dec 14, 2004 7:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-12-14T07:27:35-04:00</updated>

		<published>2004-12-14T07:27:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43994#p43994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43994#p43994"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43994#p43994"><![CDATA[
and what about the string matching he needs?<br>he wants to transfer only specific notices.<br>if you want to correct his code then you should correct <strong class="text-strong">everything</strong> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Tue Dec 14, 2004 7:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-12-13T21:24:17-04:00</updated>

		<published>2004-12-13T21:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43974#p43974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43974#p43974"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43974#p43974"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind notc - "Entries" workit proc workit { nick hand arg } {    set chan2 "#cctv"   set backout "$arg"   puthelp "PRIVMSG $chan2 :ATTENTION $nick $backout ."}</code></pre></div>i know that looks bad but this is one of my first attempts at making my own eggdrop script.. maybe someone can fix it up for me? cause its not working now..<br><br>the trigger i want it to transfer the notice on is "Entries are now open.."(after this the notice becomes variable).. all i basically want it to do is repeat it into another channel (#cctv).. there are color codes in the notice.. i dont know if this effects the trigger.. thanks in advance..</div></blockquote>Here is a more simpler way. I will add no variables to set, since you know tcl yourself, just replace #chan1 and #chan2 by the channels you want.<br><div class="codebox"><p>Code: </p><pre><code>bind notc - "*" relay:noticeproc relay:notice {nick uhost hand text {chan ""}} { if {([string equal -nocase "*$chan1*" $chan])} {  putserv "NOTICE $chan2 :$text"  return 0  }}</code></pre></div>Alternatively you can make the bot check if it is on chan2 as well, or it is opped on either chans, or both chans etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Dec 13, 2004 9:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-12-13T08:31:15-04:00</updated>

		<published>2004-12-13T08:31:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43940#p43940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43940#p43940"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43940#p43940"><![CDATA[
mh... other question: wouldn't it be easier to just send the message twice? (i mean in both chans at once). so you wouldn't have to trigger and re-send it...<br><br>@your code:<br>1. check the required arguments for a notice bind<br>2. see about "*"-sign and string matching<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Mon Dec 13, 2004 8:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lunchbox]]></name></author>
		<updated>2004-12-13T07:40:42-04:00</updated>

		<published>2004-12-13T07:40:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43939#p43939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43939#p43939"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43939#p43939"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind notc - "Entries" workit proc workit { nick hand arg } {    set chan2 "#cctv"   set backout "$arg"   puthelp "PRIVMSG $chan2 :ATTENTION $nick $backout ."}</code></pre></div>i know that looks bad but this is one of my first attempts at making my own eggdrop script.. maybe someone can fix it up for me? cause its not working now..<br><br>the trigger i want it to transfer the notice on is "Entries are now open.."(after this the notice becomes variable).. all i basically want it to do is repeat it into another channel (#cctv).. there are color codes in the notice.. i dont know if this effects the trigger.. thanks in advance..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5781">lunchbox</a> — Mon Dec 13, 2004 7:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-12-13T06:18:35-04:00</updated>

		<published>2004-12-13T06:18:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43938#p43938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43938#p43938"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43938#p43938"><![CDATA[
For recognizing the notice you can use <strong class="text-strong">bind notc</strong> or raw <strong class="text-strong">bind raw - "NOTICE" proc</strong> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Dec 13, 2004 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lunchbox]]></name></author>
		<updated>2004-12-13T03:08:10-04:00</updated>

		<published>2004-12-13T03:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43936#p43936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43936#p43936"/>
		<title type="html"><![CDATA[transfer notices from 1 channel to another]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43936#p43936"><![CDATA[
hi.. im trying to make a script that will forward a channel notice from 1 channel to another on the same network.. i would prefer to do this with 1 bot.. the bot is in both channels.. the notice will always be the same (atleast the first few words) so i tried to set it up as a trigger.. but i dont know how to set the trigger to recognize on notice.. anyone mind giving me some ideas or some snippets?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5781">lunchbox</a> — Mon Dec 13, 2004 3:08 am</p><hr />
]]></content>
	</entry>
	</feed>
