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

	<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>2003-01-09T09:54:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-09T09:54:29-04:00</updated>

		<published>2003-01-09T09:54:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15079#p15079</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15079#p15079"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15079#p15079"><![CDATA[
awesome - that works great!<br><br>thanks very much guys for you help!<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <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=2210">NewzUK</a> — Thu Jan 09, 2003 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T09:39:40-04:00</updated>

		<published>2003-01-09T09:39:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15078#p15078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15078#p15078"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15078#p15078"><![CDATA[
Plase this at the very top of the file, let alone the script.<br><div class="codebox"><p>Code: </p><pre><code>lappend IGwords thislappend IGwords that</code></pre></div>Create a new line, for each word you want to ignore, changing the obvious ("this" and "that") with your ignored words.<br><br>After this, place the following line, as the next line in the script<br><div class="codebox"><p>Code: </p><pre><code>foreach _IG [uplevel #0 {set IGwords}] { if {[string equal -nocase $_IG [lindex [split $arg] 0]]} { return } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 9:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-09T09:33:20-04:00</updated>

		<published>2003-01-09T09:33:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15076#p15076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15076#p15076"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15076#p15076"><![CDATA[
this is the piece of script - basically I want to add a return line that will ignore specific words if typed in the channel in the format of !word - as I have another script that is clashing with this one...<br><br>bind pubm - "% !*" pub:quote<br><br>proc pub:quote { nick uhost handle channel arg } {<br>set [lindex [info args pub:quote] 4] [string trimleft [subst $[lindex [info args pub:quote] 4]] !]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 09, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-01-09T09:21:25-04:00</updated>

		<published>2003-01-09T09:21:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15074#p15074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15074#p15074"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15074#p15074"><![CDATA[
NewzBoy, could you post the script in here ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Jan 09, 2003 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-09T08:00:12-04:00</updated>

		<published>2003-01-09T08:00:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15072#p15072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15072#p15072"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15072#p15072"><![CDATA[
so would something like this be right if the word I want to ignore is: fut<br><br><br>if {[string $arg]==fut} {<br>return 0<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 09, 2003 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-09T07:38:34-04:00</updated>

		<published>2003-01-09T07:38:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15070#p15070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15070#p15070"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15070#p15070"><![CDATA[
just add a if match in your proc.. returning 0 if it matches the other command<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jan 09, 2003 7:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-09T07:24:09-04:00</updated>

		<published>2003-01-09T07:24:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15067#p15067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15067#p15067"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15067#p15067"><![CDATA[
one more thing (again!) sorry...<br><br>is there a way to make the script ignore certain ! commands, as I have another script that uses a one word ! command, and it's triggering off the stock quote script ...<br><br>sorry this just came about now that the other problem is fixed!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 09, 2003 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-09T07:21:35-04:00</updated>

		<published>2003-01-09T07:21:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15065#p15065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15065#p15065"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15065#p15065"><![CDATA[
fantastic - working properly now!<br><br>thank you again - it's a great improvement for the channel!<br><br> <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=2210">NewzUK</a> — Thu Jan 09, 2003 7:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T07:05:51-04:00</updated>

		<published>2003-01-09T07:05:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15062#p15062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15062#p15062"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15062#p15062"><![CDATA[
The bind line quoted above is iucorrect, and causes too wider match.<br><br>change the bind too<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "% !*" pub:quote</code></pre></div>You will need to issue a ".restart" after doign this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-08T23:54:08-04:00</updated>

		<published>2003-01-08T23:54:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15048#p15048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15048#p15048"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15048#p15048"><![CDATA[
sorry one more thing...<br><br>it seems now to be responding to lines have ! in other places...<br><br>[16:49:50] &lt;NewzBoy&gt; testing!<br>[16:49:51] &lt;News24&gt; TESTING! No such stock symbol found<br><br>is it possible to make it only respond to lines that start with ! only like:<br><br>[16:52:25] &lt;NewzBoy&gt; !yhoo<br>[16:52:27] &lt;News24&gt; YHOO 18.80 -.350000381 (-1.83%)  Last Trade: 7:56pm (USET)  Low-High: 18.56 - 19.30  Volume: 9674491<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Jan 08, 2003 11:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-08T23:40:19-04:00</updated>

		<published>2003-01-08T23:40:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15047#p15047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15047#p15047"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15047#p15047"><![CDATA[
hi again<br><br>wonderful - it's working great now!<br><br>thank you very much for the help - much appreciated!<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Damon.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Jan 08, 2003 11:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-08T20:04:20-04:00</updated>

		<published>2003-01-08T20:04:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15043#p15043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15043#p15043"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15043#p15043"><![CDATA[
I can't see any reason why the bot would quit, or make an error for that matter.<br><br>It's likely that this is not all that is needed.<br><br>However, through the majic that is Tcl, locate the line that starts "proc pub:quote" and make the next line<br><div class="codebox"><p>Code: </p><pre><code>set [lindex [info args pub:quote] 4] [string trimleft [subst $[lindex [info args pub:quote] 4]] !]</code></pre></div>When using the PUB type bind, the first word is the command, while the rest of the line are the arguments.<br><br>With the PUBM bind, the whole line becomes the arguments.<br><br>The code above, should in theory strip the ! from the begining of the line, and make the script operate as you intend it to.<br><br>On top, even if you go back to using the !q method, the above code will not affect it's use.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Jan 08, 2003 8:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-08T19:25:41-04:00</updated>

		<published>2003-01-08T19:25:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15042#p15042</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15042#p15042"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15042#p15042"><![CDATA[
hi - tried putting that line in but it made the bot quit with error 'wrong arguments' etc<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Jan 08, 2003 7:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-08T17:36:58-04:00</updated>

		<published>2003-01-08T17:36:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15034#p15034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15034#p15034"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15034#p15034"><![CDATA[
bind pubm - "* !*" pub:quote<br><br>this will match against all lines said in any channel starting with ! , replace the first * with #chan if you want to enable it in just one channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jan 08, 2003 5:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-08T16:59:39-04:00</updated>

		<published>2003-01-08T16:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15030#p15030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15030#p15030"/>
		<title type="html"><![CDATA[getting rid of letters in a ! trigger]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15030#p15030"><![CDATA[
hi<br><br>I use a stockquote script for my trading channel, where one of the commands is !q &lt;symbol&gt; to get a quote. I've already cut the command down from !quote to !q, but I'm wondering if it's possible to have it so the user will just go !&lt;symbol&gt; (eg !msft). I've tried this myself by dropping the q, but you still have to put a space after the ! for it to work...any ideas?<br><br>here's the line from the script:<br><br>bind pub - !q pub:quote<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Jan 08, 2003 4:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
