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

	<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>2006-06-27T10:38:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-06-27T10:38:45-04:00</updated>

		<published>2006-06-27T10:38:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64353#p64353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64353#p64353"/>
		<title type="html"><![CDATA[need to change Bad channel bantype.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64353#p64353"><![CDATA[
i really don't think you can feel the difference in execution speed with this change :) but why do you want another method of obtaining the ban? you already posted the fastest and simplest way one can use for this task<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue Jun 27, 2006 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-06-27T10:08:51-04:00</updated>

		<published>2006-06-27T10:08:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64351#p64351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64351#p64351"/>
		<title type="html"><![CDATA[need to change Bad channel bantype.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64351#p64351"><![CDATA[
i guess its faster to set it and then return.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Tue Jun 27, 2006 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krimson]]></name></author>
		<updated>2006-06-27T01:59:44-04:00</updated>

		<published>2006-06-27T01:59:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64341#p64341</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64341#p64341"/>
		<title type="html"><![CDATA[need to change Bad channel bantype.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64341#p64341"><![CDATA[
you splited and got the host.ip part of the uhost correctly, but you could just return it, without writing it to $uhost before<br><div class="codebox"><p>Code: </p><pre><code>proc bmaskhost {uhost} {  return "*!*@[lindex [split $uhost @] 1]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7663">krimson</a> — Tue Jun 27, 2006 1:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-06-27T09:24:26-04:00</updated>

		<published>2006-06-26T21:18:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64340#p64340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64340#p64340"/>
		<title type="html"><![CDATA[need to change Bad channel bantype.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64340#p64340"><![CDATA[
Hey guys.<br>I am using badchan.tcl by bass, and wants to change the default ban type to *!*@host.ip here is the bass code responsible for it.<div class="codebox"><p>Code: </p><pre><code>proc bmaskhost {uhost} {  set uhost [lindex [split $uhost !] [expr [llength [split $uhost !]] -1]]  set temp [string range [lindex [split $uhost @] 0] [expr [string length [lindex [split $uhost @] 0]] - 8] e]  return "*!*$temp@[lindex [split [maskhost *!*@[lindex [split $uhost @] 1]] @] 1]"}proc bc_whois {from key args} {  global bchan bcqueue bcnicks#  putlog "319: $args"  set args [join $args]  set nick [string tolower [lindex $args 1]]  if {[info exists bcnicks($nick)]} {set chan $bcnicks($nick)} {return 0}  set chans [string tolower [lrange $args 2 e]]  if {[lsearch $bchan(exempt) $chan] == -1 &amp;&amp; $bchan(global) != ""} {set bans $bchan(global)} {set bans ""}  if {[lsearch $bchan(chans) $chan] &gt; -1} {set bans "$bans $bchan($chan)"}  foreach tok $chans {    set tok [string trimleft $tok ":@+"]    foreach ban $bans {      if {[string match [lindex $ban 0] $tok]} {        putlog "badchan:  match! $nick k/b'd from $chan because [lrange $ban 1 e]"        putlog "args: $args, ban: $ban"        if {[onchan $nick $chan]} {newchanban $chan [bmaskhost [getchanhost $nick $chan]] badchan "[lrange $ban 1 e]" 10}        return 0      }    }  }  return 0}</code></pre></div>I changed the code to this:<div class="codebox"><p>Code: </p><pre><code>proc bmaskhost {uhost} {  set uhost "*!*@[lindex [split $uhost @] 1]"  return "$uhost"}</code></pre></div>any other suggestions please.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Mon Jun 26, 2006 9:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
