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

	<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-03-01T07:10:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-03-01T07:10:58-04:00</updated>

		<published>2004-03-01T07:10:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34126#p34126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34126#p34126"/>
		<title type="html"><![CDATA[Re: Need Help With This Proc I Made.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34126#p34126"><![CDATA[
Hmm, I don't actually find what causes the error <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> But here are a few hints anyway:<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc pub_globalunban {nick host handle chan testes} {global botnickset who [lindex $testes 0]</code></pre></div></div></blockquote>$testes is a STRING, and you're using a LIST command on it, split $testes first. <blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {[string match [string tolower $who] [string tolower [lindex $banz 0]]]} { </code></pre></div></div></blockquote>What about the -nocase switch for string match? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br>Oh and, think about using proper indentation on your code, so you can find errors more easily.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Mon Mar 01, 2004 7:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-02-29T13:04:04-04:00</updated>

		<published>2004-02-29T13:04:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34112#p34112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34112#p34112"/>
		<title type="html"><![CDATA[Need Help With This Proc I Made.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34112#p34112"><![CDATA[
I Changed It To What ]Kami[ said but still it gives the same error.<br><br>Any other suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Feb 29, 2004 1:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-02-29T06:17:11-04:00</updated>

		<published>2004-02-29T06:17:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34106#p34106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34106#p34106"/>
		<title type="html"><![CDATA[Need Help With This Proc I Made.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34106#p34106"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub_globalunban {nick uhost hand chan args} { global botnickset who [lindex $args 0]</code></pre></div>....?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Sun Feb 29, 2004 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-02-29T06:07:33-04:00</updated>

		<published>2004-02-29T06:07:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34105#p34105</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34105#p34105"/>
		<title type="html"><![CDATA[Need Help With This Proc I Made.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34105#p34105"><![CDATA[
is there a value for the "testes" variable in the <br><br>proc pub_globalunban {nick host handle chan testes} { bit?<br><br>the arg is usually the $text variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sun Feb 29, 2004 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-02-29T04:41:47-04:00</updated>

		<published>2004-02-29T04:41:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34104#p34104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34104#p34104"/>
		<title type="html"><![CDATA[Need Help With This Proc I Made.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34104#p34104"><![CDATA[
I Have The Following Code.<br><div class="codebox"><p>Code: </p><pre><code>proc pub_globalunban {nick host handle chan testes} {global botnickset who [lindex $testes 0]set banc 0set bank 0if {[matchattr $handle n]} {if {$who == ""} {putnotc $nick "Usage: ${::cmdchar}globalunban &lt;host&gt;"return 0 }foreach channel [channels] {if {[isop $botnick $channel]} {foreach banz [chanbans $channel] {set mask [lrange $banz 0 end]if {[string match [string tolower $who] [string tolower [lindex $banz 0]]]} {pushmode $channel -b $maskincr bank }}}}foreach bans [banlist] {set hm [lindex $bans 0]if {[string match [string tolower $who] [string tolower [lindex $bans 0]]]} {killban $hmincr banc }}putnotc $nick "Removed $banc (Internal) &amp; $bank (ChanBanlist) Bans Matching '$who' From Global Banlists."return 1 }}</code></pre></div>And When I Execute It I Get An Error:<div class="codebox"><p>Code: </p><pre><code>Tcl error [pub_globalunban]: no value given for parameter "arg" to "pub_globalunban"</code></pre></div>Can You Please Tell Me Where Is The Problem Here?<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Sun Feb 29, 2004 4:41 am</p><hr />
]]></content>
	</entry>
	</feed>
