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

	<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>2013-12-22T09:24:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-22T09:24:17-04:00</updated>

		<published>2013-12-22T09:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102395#p102395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102395#p102395"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102395#p102395"><![CDATA[
I found what was causing this problem, apparently my production bot had the wrong hostname for my user, so it didn't trigger the script. updated the hostname and now it works as it should, thanks for your help though!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Sun Dec 22, 2013 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-20T14:25:32-04:00</updated>

		<published>2013-12-20T14:25:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102369#p102369</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102369#p102369"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102369#p102369"><![CDATA[
no, the bot stays otherwise silent<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Fri Dec 20, 2013 2:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-20T10:03:23-04:00</updated>

		<published>2013-12-20T10:03:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102366#p102366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102366#p102366"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102366#p102366"><![CDATA[
And you don't get any notice from the bot with that error?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 20, 2013 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-20T08:00:46-04:00</updated>

		<published>2013-12-20T08:00:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102364#p102364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102364#p102364"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102364#p102364"><![CDATA[
I made it putlog $err<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Fri Dec 20, 2013 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-20T07:45:52-04:00</updated>

		<published>2013-12-20T07:45:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102363#p102363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102363#p102363"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102363#p102363"><![CDATA[
Where do you see that error code 1?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 20, 2013 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-20T05:33:31-04:00</updated>

		<published>2013-12-20T05:33:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102362#p102362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102362#p102362"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102362#p102362"><![CDATA[
eggdrop 1.6.21, tcl version 8.5.11<br>It runs on a raspberry pi with debian linux. Both bots run on the same machine with virtually the same config file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Fri Dec 20, 2013 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-20T01:30:43-04:00</updated>

		<published>2013-12-20T01:30:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102360#p102360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102360#p102360"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102360#p102360"><![CDATA[
What versions of eggdrop and TCL you got there?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 20, 2013 1:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-19T12:37:01-04:00</updated>

		<published>2013-12-19T12:37:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102358#p102358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102358#p102358"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102358#p102358"><![CDATA[
it returns error code 1<br><br>//edit:<br>If I remove the part that catches the error code it works on testbot<br><br>//edit2:<br>If I load it on the production bot, just like my own code, it doesn't execute.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Thu Dec 19, 2013 12:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-12-19T12:29:00-04:00</updated>

		<published>2013-12-19T12:29:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102357#p102357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102357#p102357"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102357#p102357"><![CDATA[
Give this a try.<div class="codebox"><p>Code: </p><pre><code>bind pub m|m !set mcm:setproc mcm:set {nick host handle chan text} {if {[scan $text {%s%s} script mode] != 2} {puthelp "NOTICE $nick :Error, no settings specified. Use !set &lt;script&gt; &lt;on|off&gt;"}catch {channel get $chan $script} errif {$err!=0} {puthelp "NOTICE $nick :Error, the $script setting doesn't exist!"return}switch -- [string tolower $mode] {"on" {if {[channel get $chan $script]} {puthelp "NOTICE $nick :Error, the $script setting is already enabled."} else {channel set $chan +$scriptputhelp "NOTICE $nick :The $script setting has been disabled."}}"off" {if {![channel get $chan $script]} {puthelp "NOTICE $nick :Error, the $script setting is already disabled."} else {channel set $chan -$scriptputhelp "NOTICE $nick :The $script setting has been disabled."}}}} </code></pre></div>Haven't tested so load it on test bot and see if it works. Reply back if you got any issues.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Dec 19, 2013 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrNobody]]></name></author>
		<updated>2013-12-19T09:38:11-04:00</updated>

		<published>2013-12-19T09:38:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102355#p102355</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102355#p102355"/>
		<title type="html"><![CDATA[Script executes on one bot but not on the other]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102355#p102355"><![CDATA[
Hi all,<br><br>I wrote a very simple script to set a mode to my channels. I have a production bot and a testbot on the same network. The testbot runs the script without any problems, but the production bot doesn't trigger it at all.  I checked with .binds that the command is bound, and with .whois that I have the nescesarry flags. <br><br>this is the script:<br><div class="codebox"><p>Code: </p><pre><code>bind pub (m) !set mcm:setproc mcm:set {nick host handle chan args} {set script [lindex [join $args] 0]set what [lindex [join $args] 1]if {$what == ""} {putserv "NOTICE $nick :Error. No settings specified. Use !set &lt;script&gt; &lt;on|off&gt;"return} elseif { $what == "on"} {set what "+"set notice "enabled"} else {set what "-"set notice "disabled"}channel set $chan $what$scriptputhelp "PRIVMSG $chan :$script $notice"}</code></pre></div>on testbot it runs as it is supposed to.<br>on productionbot it doesn't even trigger the command.<br>I'm owner of both bots, the command shows in both .binds commands but it only gets triggered on testbot. <br>Oh yeah, I also restarted the productionbot, didn't do the trick either.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12300">mrNobody</a> — Thu Dec 19, 2013 9:38 am</p><hr />
]]></content>
	</entry>
	</feed>
