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

	<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>2005-10-25T07:48:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-10-25T07:48:35-04:00</updated>

		<published>2005-10-25T07:48:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56820#p56820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56820#p56820"/>
		<title type="html"><![CDATA[Two scripts, which is better?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56820#p56820"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind PUB o|mn ${trigger}kick trigger:kickproc trigger:kick {nickname hostname handle channel arguments} { if {[botisop $channel]} {  if {[lindex [split $arguments] 0] == "" || ![onchan [lindex [split $arguments] 0] $channel] || [string equal -nocase $nickname [lindex [split $arguments] 0]] || [isbotnick [lindex [split $arguments] 0]] || [string length [lindex [split $arguments] 0]] == "1"} {   putquick "NOTICE $nickname :Usage: ${::lastbind} nickname ?reason?"  } elseif {[validuser [nick2hand [lindex [split $arguments] 0]]] &amp;&amp; (([matchattr [nick2hand [lindex [split $arguments] 0]] |o $channel] &amp;&amp; ![matchattr $handle |m $channel]) || ([matchattr [nick2hand [lindex [split $arguments] 0]] |m $channel] &amp;&amp; ![matchattr $handle |n $channel]))} {   putquick "KICK $channel $nickname :Do not attempt to kick someone with a higher or equal level to you."  } else {   putquick "KICK $channel [string trim [lindex [split $arguments] 0]] :[expr {([join [string trim [lrange [split $arguments] 1 end]]] == "") ? "Requested by $handle." : "[join [lrange [split $arguments] 1 end]]"}]"  } }}</code></pre></div>(Code looks nasty in the browser because it has to cut it into pieces)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Oct 25, 2005 7:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-10-23T21:02:19-04:00</updated>

		<published>2005-10-23T21:02:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56783#p56783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56783#p56783"/>
		<title type="html"><![CDATA[Two scripts, which is better?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56783#p56783"><![CDATA[
well both suck because they are posted with bad formating plus both use list functions on strings (read <a href="http://forum.egghelp.org/viewtopic.php?t=2603" class="postlink">http://forum.egghelp.org/viewtopic.php?t=2603</a>).<br>Other than that I dont see a major diffrence, seems the if structure is a bit diffrent, but almost unrecognizeable without formating.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Oct 23, 2005 9:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Longbow]]></name></author>
		<updated>2005-10-23T19:23:42-04:00</updated>

		<published>2005-10-23T19:23:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56782#p56782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56782#p56782"/>
		<title type="html"><![CDATA[Two scripts, which is better?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56782#p56782"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - ${trigger}kick akickproc akick {nick host hand chan text} {global botnick protectif {([matchattr $hand n] || [isop $nick $chan]) &amp;&amp; [isop $botnick $chan]} {if {[lindex $text 0] == ""} {putserv "NOTICE $nick :You need to enter a user."} else {if {[onchan [lindex $text 0] $chan]} {if {([string tolower [lindex $text 0]] == [string tolower $botnick]) || [matchattr [lindex $text 0] +n]} {putserv "NOTICE $nick :That user is protected."} else {if {[lindex $text 1] == ""} {putquick "KICK $chan [lindex $text 0] Bye."} else {putquick "KICK $chan [lindex $text 0] [lrange $text 1 end]"}}} else {putserv "NOTICE $nick :[lindex $text 0] is not on the channel."}}}}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind pub - ${trigger}kick akickproc akick {nick host hand chan text} {global botnickif {([matchattr $hand n] || [isop $nick $chan]) &amp;&amp; [botisop $chan]} {global botnickif {$text == ""} {putserv "NOTICE $nick :You need to enter a user."return 0}if {![onchan [lindex $text 0] $chan]} {putserv "NOTICE $nick :[lindex $text 0] is not on the channel."return 0}if {([string tolower [lindex $text 0]] == [string tolower $botnick]) || [matchattr [lindex $text 0] +n]} {putserv "NOTICE $nick :That user is protected."return 0}if {[lindex $text 1] == ""} {putquick "KICK $chan [lindex $text 0] Bye."} else {putquick "KICK $chan [lindex $text 0] [lrange $text 1 end]"}return 0}}</code></pre></div>Both do the same action, but was wondering which is "better"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5887">Longbow</a> — Sun Oct 23, 2005 7:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
