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

	<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-09-09T20:26:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-09T20:26:28-04:00</updated>

		<published>2004-09-09T20:26:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40775#p40775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40775#p40775"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40775#p40775"><![CDATA[
So <strong class="text-strong">[string match {[#&amp;!]*} $dest]</strong>:<br><br>Will match with $dest like "#blabla" or "!blabla" or "&amp;blabla"<br>Meaning it will do a match against "#*" or "!*" or "&amp;*" all in one command rather than specifiying 3 string matching commands with the logical OR operator?<br><br>Nice!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Sep 09, 2004 8:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-09T17:45:28-04:00</updated>

		<published>2004-09-09T17:45:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40763#p40763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40763#p40763"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40763#p40763"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Fine now?</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> it was fine before  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> <blockquote class="uncited"><div>The best "fix" would be 'file delete scripts/alltools.tcl'</div></blockquote>that's akin to blasphemy  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Thu Sep 09, 2004 5:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-09T15:45:44-04:00</updated>

		<published>2004-09-09T15:45:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40758#p40758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40758#p40758"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40758#p40758"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>For fixing that, and making it restricted to channels...</div></blockquote><div class="codebox"><p>Code: </p><pre><code>if {[string index $dest 0] == "#"] || [string index $dest 0] == "!"] || [string index $dest 0] == "&amp;"]} then { puthelp "PRIVMSG $dest :$text"}</code></pre></div>Fine now?</div></blockquote>The best "fix" would be 'file delete scripts/alltools.tcl' <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>(I'd use 'string match {[#&amp;!]*} $dest' to do that kind of matching)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 09, 2004 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-09-09T14:26:50-04:00</updated>

		<published>2004-09-09T14:26:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40756#p40756</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40756#p40756"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40756#p40756"><![CDATA[
<blockquote class="uncited"><div>For fixing that, and making it restricted to channels...</div></blockquote><div class="codebox"><p>Code: </p><pre><code>if {[string index $dest 0] == "#"] || [string index $dest 0] == "!"] || [string index $dest 0] == "&amp;"]} then { puthelp "PRIVMSG $dest :$text"}</code></pre></div>Fine now?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Sep 09, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-09T06:53:04-04:00</updated>

		<published>2004-09-09T06:53:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40735#p40735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40735#p40735"/>
		<title type="html"><![CDATA[dudes...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40735#p40735"><![CDATA[
"#" is not the only channel name prefix and wtf is the point of this filtering in the output command?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Sep 09, 2004 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-09-09T05:31:09-04:00</updated>

		<published>2004-09-09T05:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40733#p40733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40733#p40733"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40733#p40733"><![CDATA[
It can also be like this:<div class="codebox"><p>Code: </p><pre><code>if {[string index $dest 0] == "#"]} then { puthelp "PRIVMSG $dest :$text"}</code></pre></div>:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Sep 09, 2004 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-09T04:23:40-04:00</updated>

		<published>2004-09-09T04:23:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40732#p40732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40732#p40732"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40732#p40732"><![CDATA[
<blockquote class="uncited"><div>Basically it's just a remap of the puthelp command. It will use the puthelp (slowest que) to send the msg to the channel. I don't see a need for using it. It will take some more time to read the proc putchan, why not simply use puthelp to make it go directly.</div></blockquote>I have found some of the shortcuts in <em class="text-italics">alltools.tcl</em> to be excellent, namely <em class="text-italics">strlwr/strupr, iscommand, and ispermowner</em>...  wish some of the tcl docs had more examples of actual usage  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink">  almost as much as I wish I had a beer....  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Thu Sep 09, 2004 4:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-07T22:29:41-04:00</updated>

		<published>2004-09-07T22:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40700#p40700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40700#p40700"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40700#p40700"><![CDATA[
Basically it's just a remap of the puthelp command. It will use the puthelp (slowest que) to send the msg to the channel. I don't see a need for using it. It will take some more time to read the proc putchan, why not simply use puthelp to make it go directly.<br><br>Then again it's mapped in such a way in alltools.tcl $dest can be a 'nick' too not especially a 'channel'. So it can also be:<br><br>putchan awyeah "hi there!"<br>putchan #funchat "hello everyone!"<br><br>For fixing that, and making it restricted to channels, as the name 'putchan' suggests you can use something like:<div class="codebox"><p>Code: </p><pre><code> if {(string match "#*" $dest])} { puthelp "PRIVMSG $dest :$text" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 07, 2004 10:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-09-07T15:46:05-04:00</updated>

		<published>2004-09-07T15:46:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40688#p40688</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40688#p40688"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40688#p40688"><![CDATA[
You should be able to figure things out by reading the code<div class="codebox"><p>Code: </p><pre><code>proc putchan {dest text} {  puthelp "PRIVMSG $dest :$text"}</code></pre></div>...so all it does is add a keyword and a colon (and slow things down a bit)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Sep 07, 2004 3:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-07T15:22:00-04:00</updated>

		<published>2004-09-07T15:22:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40687#p40687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40687#p40687"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40687#p40687"><![CDATA[
so there is no longer any need to seperate nick/chan from the text with a colon ( : )?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Tue Sep 07, 2004 3:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-07T14:42:55-04:00</updated>

		<published>2004-09-07T14:42:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40686#p40686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40686#p40686"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40686#p40686"><![CDATA[
It's 'putchan dest text' <div class="codebox"><p>Code: </p><pre><code>putchan #chan "text goes here"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Sep 07, 2004 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-09-07T13:33:40-04:00</updated>

		<published>2004-09-07T13:33:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40683#p40683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40683#p40683"/>
		<title type="html"><![CDATA[syntax for output cmds]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40683#p40683"><![CDATA[
What's the syntax to output information to the server for the improvements &amp; alterations made by <em class="text-italics">alltools.tcl</em>?  For example, output syntax to send a PRIVMSG to the channel #outhouse is<div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG #outhouse :This is my lame message."</code></pre></div>Now my question is simply what is the correct syntax to use the command, for ex., <em class="text-italics">putchan</em>, in this same scenario?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> I'm confused as to where the quotes belong....<div class="codebox"><p>Code: </p><pre><code>putchan #outhouse :"Where do my quotes belong?"</code></pre></div>Thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Tue Sep 07, 2004 1:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
