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

	<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>2014-07-26T14:00:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-07-26T14:00:29-04:00</updated>

		<published>2014-07-26T14:00:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103059#p103059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103059#p103059"/>
		<title type="html"><![CDATA[Ignore certain wildcards, but relay everything else]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103059#p103059"><![CDATA[
Try this...<div class="codebox"><p>Code: </p><pre><code>### Set the channel to relay all qualifying text to! ###set relayto #channeltorelayto### Set any exempt masks for text that will not be relayed ###### One exempt word, phrase, or mask per line! ###set relayxmpt {} ;## End of exempt masks setting ### Channel flag for all monitored channels.# To flag a channel to be monitored, do: .chanset #yourchannel +relayTextsetudef flag relayText# Bind all text in all channels.bind pubm - * relayMonitor# Clean and split any exempt masks.set relayxmpt [split [string trim $relayxmpt] "\n"]proc relayMonitor {nk uh hn ch tx} {    # Check channel flag.    if {![channel get $ch relayText]} {  return 0  }    # Check text for matching exempt.    foreach xmpt $::relayxmpt {        if {[string match -nocase $xmpt $tx]} {  return 0  }    }    # Send any qualifying text to $relayto channel.    puthelp "PRIVMSG $::relayto :&lt;$nk@$ch&gt; $tx"     return 0}</code></pre></div>### Set any exempt masks for text that will not be relayed ###<br>### One exempt word, phrase, or mask per line! ###<br>Example:<div class="codebox"><p>Code: </p><pre><code>set relayxmpt {heybe back later*(Source:*} ;## End of exempt masks setting ##</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 26, 2014 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2014-07-26T05:25:51-04:00</updated>

		<published>2014-07-26T05:25:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103055#p103055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103055#p103055"/>
		<title type="html"><![CDATA[Ignore certain wildcards, but relay everything else]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103055#p103055"><![CDATA[
Hi,<br><br>I'm using the following script to relay messages from one channel to another:<br><div class="codebox"><p>Code: </p><pre><code># Channel flag.setudef flag monitorText2# Subchannel.set subchannel2 #channeltolisten# Bind all text in all channels.bind pubm - * monitorProc2proc monitorProc2 {nick uhost hand chan text} {global subchannel2    # Check channel flag.    if {![channel get $chan monitorText2]} {        return 0    }    # Check text for matching values.       if {[string match "*(Source:*" $text] } {        # Send matching text to subchannel.        putserv "PRIVMSG GianniInfantino :msg #channeltorelayto $text"    }}</code></pre></div><br>But in practice what I'm looking for is a script that will ignore certain wildcards/texts - and relay every message that does not match that wildcard/text.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Jul 26, 2014 5:25 am</p><hr />
]]></content>
	</entry>
	</feed>
