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

	<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>2007-03-01T14:51:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2007-03-01T14:51:48-04:00</updated>

		<published>2007-03-01T14:51:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70868#p70868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70868#p70868"/>
		<title type="html"><![CDATA[!stats responce in chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70868#p70868"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>puthelp "NOTICE $nick :http://myurl.com:8033l/[string trimleft $chan "#"]"</code></pre></div>I don't really see the point of turning a string into a list and then back to a string again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>edit:<br><div class="codebox"><p>Code: </p><pre><code>% set chan #moo#moo% string trimleft $chan #moo% join [split $chan #] moo</code></pre></div>Another good reason why rosc's solution wouldn't work very well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Mar 01, 2007 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-03-01T01:40:47-04:00</updated>

		<published>2007-03-01T01:40:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70852#p70852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70852#p70852"/>
		<title type="html"><![CDATA[!stats responce in chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70852#p70852"><![CDATA[
puthelp "NOTICE $nick :http://myurl.com:8033l/[join [split $chan #]]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Mar 01, 2007 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speedy]]></name></author>
		<updated>2007-03-01T01:26:37-04:00</updated>

		<published>2007-03-01T01:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70849#p70849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70849#p70849"/>
		<title type="html"><![CDATA[!stats responce in chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70849#p70849"><![CDATA[
if it pisible he says channel in place of #channels without the # ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8751">speedy</a> — Thu Mar 01, 2007 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[et109]]></name></author>
		<updated>2007-02-27T14:23:30-04:00</updated>

		<published>2007-02-27T14:23:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70794#p70794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70794#p70794"/>
		<title type="html"><![CDATA[!stats !logs problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70794#p70794"><![CDATA[
this works okay here<div class="codebox"><p>Code: </p><pre><code>   bind pub - !logs logs_msg   bind pub - !stats stats_msg   proc logs_msg { nick uhost hand chan text } {       puthelp "NOTICE $nick :Channel Logs can be read at"       puthelp "NOTICE $nick :http://myurl.com/~leader/logs/$chan"     return 0  }   proc stats_msg {nick uhost hand chan text } {      puthelp "NOTICE $nick :Channel stats can be found on"      puthelp "NOTICE $nick :http://myurl.com:8033l/$chan"      return 0  }</code></pre></div>The pub event handler takes &lt;nick&gt;&lt; u@host&gt; &lt; handle&gt; &lt; channel&gt; &lt; text&gt;  as its arguments<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8745">et109</a> — Tue Feb 27, 2007 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-02-27T11:42:34-04:00</updated>

		<published>2007-02-27T11:42:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70790#p70790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70790#p70790"/>
		<title type="html"><![CDATA[!stats responce in chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70790#p70790"><![CDATA[
First off, it would be prefferable if you put your tcl-code inside a code-block.<br><br>Secondly, it would be helpful if you could provide some information on the actual malfunction of your script; ie. error-message, unexpected response, or such.<br><br>A few obvious issues however:<ol style="list-style-type:decimal"><li>Don't use "args" as a variable in a proc declaration unless you are fully aware of it's special characteristics. It does not behave as any other variable. Speciffically, it can accept an arbitrary number of arguments while any other variable-name may only take one.</li><li>You cannont have newlines in strings you send to the irc-server.</li><li>In this case, you would most likely be better off using "puthelp" rather than "putserv". Only use "putserv" for important things such as kicking/banning, opping, registering with Nickserv (if available)</li></ol><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Feb 27, 2007 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speedy]]></name></author>
		<updated>2007-02-27T11:09:45-04:00</updated>

		<published>2007-02-27T11:09:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70789#p70789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70789#p70789"/>
		<title type="html"><![CDATA[!stats responce in chan]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70789#p70789"><![CDATA[
i need some help about the pub command !stats &amp; log in a #chan <br><br>plz help me to solve the problem that my egg will responce on those triggers <br><br>### start script <br><br>bind pub - !logs logs_msg<br>proc logs_msg  { nick uhost hand chan args } {<br>putserv "NOTICE $nick :Channel Logs can be read <br><a href="http://myurl.com/~leader/logs/$chan" class="postlink">http://myurl.com/~leader/logs/$chan</a>"<br>return 0<br><br>}<br><br><br>bind pub - !stats stats_msg<br>proc stats_msg {nick uhost hand chan args } {<br>putserv "NOTICE $nick :Channel can be found on <br>http://myurl.com:8033l/$chan"<br>return 0<br><br>}<br><br>#### en script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8751">speedy</a> — Tue Feb 27, 2007 11:09 am</p><hr />
]]></content>
	</entry>
	</feed>
