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

	<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>2012-09-09T12:15:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-09-09T12:15:36-04:00</updated>

		<published>2012-09-09T12:15:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100000#p100000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100000#p100000"/>
		<title type="html"><![CDATA[timebomb with dont kick ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100000#p100000"><![CDATA[
the secret to add such options in that script is in this somewhat flawed process...<div class="codebox"><p>Code: </p><pre><code>proc doTimebomb {nick uhost hand chan arg} {  global botnick  set theNick $nick  if { [llength $arg] == 1 } {    set theNick [lindex [split $arg] 0]  }  if { [string tolower $theNick] == [string tolower $botnick] } {    set theNick $nick    IRCKick $theNick $chan "I will not tollerate this!"    return  }  if { [validuser $theNick] == 1 } {    if { [matchattr $theNick "+b"] == 1 } {      set theNick $nick      IRCKick $theNick $chan "I will not tollerate that!"      return    }  }  StartTimeBomb $nick $theNick $chan}</code></pre></div>Original process uses  [validuser $theNick] &amp; [matchattr $theNick "+b"]<br>Both need to be run on a handle, not a nick!<br>Try replacing all the above code with this.<br><div class="codebox"><p>Code: </p><pre><code>proc doTimebomb {nick uhost hand chan arg} {  global botnick  set arg [split $arg]  set theNick $nick  set self 1  if {[llength $arg] == "1"} {    set theNick [lindex $arg 0]    set self 0  }  if { [string tolower $theNick] == [string tolower $botnick] } {    set theNick $nick    IRCKick $theNick $chan "I will not tollerate this!"    return  }  if {$self=="0"} {    if {![onchan $theNick $chan]} {  return  }    if {[isop $theNick $chan]}       IRCPrivMSG $chan "You can't timebomb an op!"      StartTimeBomb $nick $nick $chan      return    }    set theHand [nick2hand $theNick $chan]    if {$theHand ne "" &amp;&amp; $theHand ne "*"} {      if {[matchattr $theHand b|b $chan]} {        IRCKick $nick $chan "I will not tollerate that!"        return      }      if {[matchattr $theHand no|no $chan]} {        IRCPrivMSG $chan "You can't timebomb an op/owner!"        return      }    }  }  StartTimeBomb $nick $theNick $chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Sep 09, 2012 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-09-09T11:37:23-04:00</updated>

		<published>2012-09-09T11:37:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99999#p99999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99999#p99999"/>
		<title type="html"><![CDATA[timebomb with dont kick ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99999#p99999"><![CDATA[
Find:<div class="codebox"><p>Code: </p><pre><code>proc doTimebomb {nick uhost hand chan arg} {</code></pre></div>It is near the end.<br><br>Compare it to the following:<div class="codebox"><p>Code: </p><pre><code>proc doTimebomb {nick uhost hand chan arg} {  global botnick  set theNick $nick  if { [llength $arg] == 1 } {    set theNick [lindex [split $arg] 0]  }  if { [string tolower $theNick] == [string tolower $botnick] } {    set theNick $nick    IRCKick $theNick $chan "I will not tollerate this!"    return  }  if { [validuser $theNick] == 1 } {    if { [matchattr $theNick "+b"] == 1 } {      set theNick $nick      IRCKick $theNick $chan "I will not tollerate that!"      return    }  }  if {[isop $theNick $chan]} {      putserv "privmsg $chan :Sorry, no bomb for op"      return    }  StartTimeBomb $nick $theNick $chan}</code></pre></div><br>Add the changes to your script, rehash, and test.  I have not loaded the script just to test this.<br><br>Here is the reference material you needed:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and scroll down to:<br>          isop &lt;nickname&gt; [channel]<br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Sep 09, 2012 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[albatuni]]></name></author>
		<updated>2012-09-09T09:06:25-04:00</updated>

		<published>2012-09-09T09:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99998#p99998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99998#p99998"/>
		<title type="html"><![CDATA[timebomb with dont kick ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99998#p99998"><![CDATA[
hi, i want to ask help how to modified timebomb scripts so it can't kick ops/owner and say something in room like "sorry, no bomb for op/owner"<br><br><a href="http://www.egghelp.org/files/tcl/timebomb.tar.gz" class="postlink">This link to Timebomb script</a><br><br>Thanks..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12076">albatuni</a> — Sun Sep 09, 2012 9:06 am</p><hr />
]]></content>
	</entry>
	</feed>
