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

	<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>2008-12-10T12:17:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2008-12-10T12:16:15-04:00</updated>

		<published>2008-12-10T12:16:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86174#p86174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86174#p86174"/>
		<title type="html"><![CDATA[[SOLVED] Script allows Bot to Kick and Ban Itself: Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86174#p86174"><![CDATA[
Hi Sir_Fz<br><br>thanks for the reply and the help. I just tried it out and it works like a charm! Great advice!<br><br>My deepest appreciation to <strong class="text-strong">User</strong> &amp; to <strong class="text-strong">Sir_Fz</strong>, this really helped us out  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>/me dances a jig....you guys have a good one.<br><br>with much appreciation,<br>Achilles<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Dec 10, 2008 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-10T09:20:21-04:00</updated>

		<published>2008-12-10T09:20:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86170#p86170</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86170#p86170"/>
		<title type="html"><![CDATA[[SOLVED] Script allows Bot to Kick and Ban Itself: Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86170#p86170"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>if {$text == $botnick} { return 0 }</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $text]} { return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 10, 2008 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2008-12-10T07:33:13-04:00</updated>

		<published>2008-12-10T07:33:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86167#p86167</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86167#p86167"/>
		<title type="html"><![CDATA[Thanks! The !kick Part is solved but]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86167#p86167"><![CDATA[
Hi User,<br><br>thanks man, your expert advice <strong class="text-strong">solved</strong> the <strong class="text-strong">!kick</strong> part. That works like a charm!<br><br>However the <span style="text-decoration:underline"><strong class="text-strong">!ban</strong></span> part is <span style="text-decoration:underline"><strong class="text-strong">still banning</strong></span> even though I replaced:<br><br><em class="text-italics">if {$text == $botnick} { return 0 } </em><br><br>with<br><br><em class="text-italics">if {![isbotnick $text]} {</em><br><br>That killed the bot from shell with this error:<br><br>Tcl error in file 'bot.conf':<br> missing close-brace<br>   while executing<br> "proc proc_ban { nick uhost hand chan text } {<br>   global botnick<br>  if {[onchan $text]} {<br>    if {![isbotnick $text]} {<br>     set banmask [maskhost [getcha..."<br>     (file "scripts/opcmds.tcl" line 70)<br>     invoked from within<br> * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br>-<br>DCC session closed<br><br>Any other information you need please let me know, i really appreciate you taking the effort   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> - Achilles<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Dec 10, 2008 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2008-12-10T04:53:55-04:00</updated>

		<published>2008-12-10T04:53:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86165#p86165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86165#p86165"/>
		<title type="html"><![CDATA[[SOLVED] Script allows Bot to Kick and Ban Itself: Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86165#p86165"><![CDATA[
I guess the problem is case sensitive nick matching. Change {$text != $botnick} to {![isbotnick $text]}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 10, 2008 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[achilles1900]]></name></author>
		<updated>2008-12-10T12:17:09-04:00</updated>

		<published>2008-12-10T04:22:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86164#p86164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86164#p86164"/>
		<title type="html"><![CDATA[[SOLVED] Script allows Bot to Kick and Ban Itself: Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86164#p86164"><![CDATA[
Hi Forum people,<br><br>I have a public command script for users with +o in the bot.  <br><strong class="text-strong">Problem is when executing !kick (botnick) &amp; !ban (botnick); the bot kicks and bans itself.</strong><br><br>Can someone please go through it and see where the error is? I thank you in advance, cause' it would really help our channel.<br><br>Best regards. (script follows)<div class="codebox"><p>Code: </p><pre><code># Process Kickproc proc_kick { nick uhost hand chan text } { global botnick  if {[onchan $text]} {  if {$text != $botnick} {    putquick "KICK $chan $text :Requested"}  } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" }}# Ban Processproc proc_ban { nick uhost hand chan text } {  global botnick  if {[onchan $text]} {    if {$text == $botnick} { return 0 }    set banmask [maskhost [getchanhost $text $chan]]    putquick "MODE $chan +b $banmask"    putkick $chan $text :Requested  } else { putserv "PRIVMSG $chan :$text Is Not In The Channel" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9882">achilles1900</a> — Wed Dec 10, 2008 4:22 am</p><hr />
]]></content>
	</entry>
	</feed>
