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

	<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>2003-12-09T18:23:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-09T18:23:20-04:00</updated>

		<published>2003-12-09T18:23:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31256#p31256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31256#p31256"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31256#p31256"><![CDATA[
on DALnet you can't start a nick with a number and for sure you cant use <strong class="text-strong">.</strong>'s in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2003 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-09T17:34:49-04:00</updated>

		<published>2003-12-09T17:34:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31251#p31251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31251#p31251"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31251#p31251"><![CDATA[
yeah, but this host isnt valid anyway, no network will allow such nicks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Dec 09, 2003 5:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TALES]]></name></author>
		<updated>2003-12-09T16:29:53-04:00</updated>

		<published>2003-12-09T16:29:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31247#p31247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31247#p31247"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31247#p31247"><![CDATA[
when its a channel ban with numbers like example 255.255.255.255!*@* then eggdrop can't yet remove the ban.<br><br><br>look @ url from bug report<br><a href="http://eggheads.org/pipermail/bugs/2003-December/000601.html" class="postlink">http://eggheads.org/pipermail/bugs/2003 ... 00601.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4104">TALES</a> — Tue Dec 09, 2003 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-09T14:58:35-04:00</updated>

		<published>2003-12-09T14:58:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31243#p31243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31243#p31243"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31243#p31243"><![CDATA[
I agree with you on that. If a scripts has lots of settings, I prefer using arrays in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2003 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-09T12:51:08-04:00</updated>

		<published>2003-12-09T12:51:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31237#p31237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31237#p31237"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31237#p31237"><![CDATA[
<blockquote class="uncited"><div>don't use "-" in your vars. So next time instead of ban-time use ban_time.</div></blockquote>or, as quoted, use {va-riable} to read it.<br>btw, the best (at least i think so) is an array for everything, like mybanscript(time) mybanscript(reason) etc...makes it easier to debug / edit and you dont have so many little vars flying round<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Dec 09, 2003 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-09T11:31:39-04:00</updated>

		<published>2003-12-09T11:31:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31236#p31236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31236#p31236"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31236#p31236"><![CDATA[
don't use "-" in your vars. So next time instead of ban-time use ban_time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2003 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-12-09T08:43:17-04:00</updated>

		<published>2003-12-09T08:43:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31234#p31234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31234#p31234"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31234#p31234"><![CDATA[
change the "newban $host $nick "$reason" $ban-time" to<div class="codebox"><p>Code: </p><pre><code>newban $host $nick "$reason" ${ban-time}</code></pre></div>this should do the trick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Tue Dec 09, 2003 8:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-09T07:59:04-04:00</updated>

		<published>2003-12-09T07:59:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31232#p31232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31232#p31232"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31232#p31232"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set ban ..... </code></pre></div>this means there is no ban set so the variable isn't set if the ban is set out side the proc global it first or use $::ban same as global.. but only works for 1.6.x bots ..</div></blockquote>what and where do I set this variable and set to what?<br>I'm sorry, but I have tried as best I could and getting no where...<br><br>Regards.<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by Guest — Tue Dec 09, 2003 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-09T07:56:59-04:00</updated>

		<published>2003-12-09T07:56:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31231#p31231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31231#p31231"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31231#p31231"><![CDATA[
I have pasted the proc you requested below, there are other procs that<br>use the ban functionality and those also return the same error, that<br>ban variable seems to be globally broken!<br><br>I hope this helps...<br><br>Thanks guys<br><br><br>## public cmd +ban -- start<br>proc pub_+ban  {nick uhost hand channel rest} {<br> global botnick CC ban-time<br> if {[matchattr $hand Q] == 0} {<br>  puthelp "NOTICE $nick :\002\[FL\]\002 This command requires you to authenticate yourself. Please /msg $botnick auth &lt;password&gt;"<br>  return 0<br> }<br> if {[botisop $channel]==1} {<br>  if {$rest == ""} {<br>   puthelp "NOTICE $nick :\002\[FL\]\002 Usage: ${CC}+ban &lt;hostmask&gt; \[reason\]"<br>   return 0<br>  }<br>  if {$rest!=""} {<br>   set host [lindex $rest 0]<br>   set reason [lrange $rest 1 end]<br>   if {[string tolower $host] == [string tolower $botnick]} {<br>    putserv "KICK $channel $nick :\002\[FL\]\002 You really shouldn't try that..."<br>    return 0<br>   }<br>   if {$reason == ""} {<br>    set reason "\002requested\002"<br>   }<br>   set options [lindex $reason 0]<br>   if {[string index $options 0] == "-"} {<br>     set options [string range $options 1 end]<br>   }<br>   switch -exact  $options {<br>     perm {<br>             set reason [lrange $reason 1 end]<br>             newban $host $nick "$reason" 0<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>           }<br>     min {<br>             if {[val [lindex $reason 1]] == ""} {<br>               puthelp "NOTICE $nick :\002\[FL\]\002 Error, invalid time period"<br>               return 0<br>             }<br>             set time [lindex $reason 1]<br>             set reason [lrange $reason 2 end]<br>             newban $host $nick "$reason" $time<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>          }<br>     hours {<br>             if {[val [lindex $reason 1]] == ""} {<br>               puthelp "NOTICE $nick :\002\[FL\]\002 Error, invalid time period"<br>               return 0<br>             }<br>             set time [expr [lindex $reason 1]*60]<br>             set reason [lrange $reason 2 end]<br>             newban $host $nick "$reason" $time<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>     }<br>     days {<br>             if {[val [lindex $reason 1]] == ""} {<br>               puthelp "NOTICE $nick :\002\[FL\]\002 Error, invalid time period"<br>               return 0<br>             }<br>             set time [expr [expr [lindex $reason 1]*60]*24]<br>             set reason [lrange $reason 2 end]<br>             newban $host $nick "$reason" $time<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>     }<br>     weeks {<br>             if {[val [lindex $reason 1]] == ""} {<br>               puthelp "NOTICE $nick :\002\[FL\]\002 Error, invalid time period"<br>               return 0<br>             }<br>             set time [expr [expr [expr [lindex $reason 1]*60]*24]*7]<br>             set reason [lrange $reason 2 end]<br>             newban $host $nick "$reason" $time<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>     }<br>   }<br>             set reason [lrange $reason 1 end]<br>             newban $host $nick "$reason" $ban-time<br>             if {$reason == ""} {set reason "No reason given"}<br>             putlog "\002\[FL\]\002 &lt;&lt;$nick&gt;&gt; !$hand! +ban $reason"<br>             return 0<br>  }<br> }<br> if {[botisop $channel]!=1} {<br>  puthelp "NOTICE $nick :\002\[FL\]\002 I am not oped"<br> }<br>}<br>## public cmd +ban -- stop<p>Statistics: Posted by Guest — Tue Dec 09, 2003 7:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-09T06:40:58-04:00</updated>

		<published>2003-12-09T06:40:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31228#p31228</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31228#p31228"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31228#p31228"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set ban ..... </code></pre></div>this means there is no ban set so the variable isn't set if the ban is set out side the proc global it first or use $::ban same as global.. but only works for 1.6.x bots ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Tue Dec 09, 2003 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-09T05:46:35-04:00</updated>

		<published>2003-12-09T05:46:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31223#p31223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31223#p31223"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31223#p31223"><![CDATA[
show us the <strong class="text-strong">pub_+ban</strong> proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 09, 2003 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-09T02:11:38-04:00</updated>

		<published>2003-12-09T02:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31212#p31212</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31212#p31212"/>
		<title type="html"><![CDATA[can't read &quot;ban&quot;: no such variable]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31212#p31212"><![CDATA[
Hi All, <br><br>I was wondering if you guys could assist me, I am running eggdrop 1.6.15 and I have added the scripts facelift V3.6.1. <br><br>I recently removed all greet functionality from the script by commenting out lines containing the word greet. Now when I was attempting to use _any_ ban functionality I get the following error... <br><br>Tcl error [pub_+ban]: can't read "ban": no such variable <br><br>I can't see how any of the lines I have commented out could affect my ban operation, but perhaps I'm wrong. If you guys/gals could give me any pointers, I'd appreciate it. <br><br>Thanks!<p>Statistics: Posted by Guest — Tue Dec 09, 2003 2:11 am</p><hr />
]]></content>
	</entry>
	</feed>
