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

	<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-08-06T02:21:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-06T02:21:54-04:00</updated>

		<published>2004-08-06T02:21:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39541#p39541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39541#p39541"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39541#p39541"><![CDATA[
add <div class="codebox"><p>Code: </p><pre><code>bind msg - info *msg:info</code></pre></div> after the unbind thing<br><br>I took the liberty of rewriting those two loops of yours...<div class="codebox"><p>Code: </p><pre><code>foreach script [glob -nocomplain -types f -dir scripts *.tcl] {if {[catch {source $script} re]} {putlog "ERROR: the following error occured while evaluating $script: $error"}}foreach bind [binds \\*msg:*] {catch "unbind [lreplace $bind 3 3]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Aug 06, 2004 2:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-06T01:26:29-04:00</updated>

		<published>2004-08-06T01:26:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39540#p39540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39540#p39540"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39540#p39540"><![CDATA[
the thing is, I have a piece of code that loads every script in the script folder and if there is an error, it will make a log of it, and if im not mistaken, userinfo IS loaded after the script that wipes all other binds, but userinfo doesnt bind the msg i believe, I think its build into eggdrop.<br><div class="codebox"><p>Code: </p><pre><code>foreach script [glob scripts/*] {  if {(![file isdirectory $script]) &amp;&amp; ([regexp {^(.+)\.tcl$} $script])} {    catch {source $script} error    if {$error != ""} {      putlog "ERROR: the following error occured while evaluating ${script}: $error"    }  }}</code></pre></div>If you remove all other "source scripts/*script.tcl*" lines from ur eggdrop.conf this will load all the scripts and if it finds an error ( such as a missing close brace ) it will make a log of it and the bot won't crash <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Here is the piece of code that deletes all the bind msgs <br><div class="codebox"><p>Code: </p><pre><code>foreach bind [binds msg] {  regexp -- {(.+)\s(.+)\s(.+)\s.+\s(.+)} $bind tmp type flags command name  regsub -all -- {([^\*]+)} $name {} result  if {$result == "*"} {    catch {unbind $type $flags $command $name}  }}</code></pre></div>This unbinds all the msg binds thus i need a script that rebinds the userinfo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Aug 06, 2004 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-06T01:18:42-04:00</updated>

		<published>2004-08-06T01:18:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39539#p39539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39539#p39539"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39539#p39539"><![CDATA[
why don't you just load userinfo after running the script that unbinds?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Aug 06, 2004 1:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-06T01:17:07-04:00</updated>

		<published>2004-08-06T01:17:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39538#p39538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39538#p39538"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39538#p39538"><![CDATA[
And than half of the scripts funtionality is gone? :\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Aug 06, 2004 1:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[K]]></name></author>
		<updated>2004-08-05T17:30:08-04:00</updated>

		<published>2004-08-05T17:30:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39518#p39518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39518#p39518"/>
		<title type="html"><![CDATA[than]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39518#p39518"><![CDATA[
than on that script remove that line  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4489">K</a> — Thu Aug 05, 2004 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-05T06:53:06-04:00</updated>

		<published>2004-08-05T06:53:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39507#p39507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39507#p39507"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39507#p39507"><![CDATA[
Right there is my problem. 1 of my scripts unbinds all the default msg binds thus, my /msg &lt;info&gt; bind.<br><br>Thats why i need a seperate script for it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Aug 05, 2004 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[netux]]></name></author>
		<updated>2004-08-04T14:48:29-04:00</updated>

		<published>2004-08-04T14:48:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39472#p39472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39472#p39472"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39472#p39472"><![CDATA[
from userinfo.tcl<blockquote class="uncited"><div>#   TYPE    COMMAND         USAGE<br>#   ======  ==============  ========================================<br>#   msg      &lt;info&gt;         To change your &lt;info&gt; via /MSG.<br>#   dcc     .&lt;info&gt;         To change your &lt;info&gt; via DCC.<br>#   dcc     .ch&lt;info&gt;       To change someone else's &lt;info&gt; via DCC.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5272">netux</a> — Wed Aug 04, 2004 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-08-04T13:40:07-04:00</updated>

		<published>2004-08-04T13:40:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39470#p39470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39470#p39470"/>
		<title type="html"><![CDATA[A script that sets the info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39470#p39470"><![CDATA[
Hey, I've been looking for a script that sets the info for you with<br>/msg &lt;bot&gt; info &lt;your infoline&gt;<br><br>Or if you have userinfo.tcl i believe you can use .info &lt;infoline&gt;<br><br>But i need a msg version of that but i havent been able to find one and i have no clue how to make a script that does it myself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>So if someone knows a script like this or has one, Plz post <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=5078">metroid</a> — Wed Aug 04, 2004 1:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
