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

	<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-04-02T12:02:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-02T12:02:50-04:00</updated>

		<published>2006-04-02T12:02:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61587#p61587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61587#p61587"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61587#p61587"><![CDATA[
<blockquote class="uncited"><div> you would want to make the channels lower-case since [lsearch] is case-sensitive.</div></blockquote>I'd recommned using the same capitalition as the bot knows them (like shown in .status).<br><br><blockquote class="uncited"><div>I get an error, is there something I did wrong? <br><div class="codebox"><p>Code: </p><pre><code>[08:12] Tcl error [ban:bnick]: can't read "bnchans": no such variable</code></pre></div></div></blockquote>Read this again:<blockquote class="uncited"><div>bnchans should be globalized inside the proc </div></blockquote>that means you either add it to the global line or add :: behind the $ for each call to that var within a proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Apr 02, 2006 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2006-04-02T11:15:51-04:00</updated>

		<published>2006-04-02T11:15:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61582#p61582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61582#p61582"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61582#p61582"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set badnicks [list "*[censored]*" "*dyn_*" "*dyn_user*"]set bnchans {#aite}bind join - * ban:bnickbind nick - * ban:bnickproc ban:bnick {nick uhost hand chan {nn ""}} {if {[lsearch -exact $bnchans $chan] == -1} {return 0}global badnicksset bbanmask "*!*@[lindex [split $uhost @] 1]"if {$nn == ""} { set nn $nick }if {![isbotnick $nick]} {  foreach badnick $badnicks {   if {[string match -nocase  $badnick $nn]} {    putserv "MODE $chan +b $bbanmask"    putserv "KICK $chan $nick :Please Identify, before you enter this channel, and or make sure you auto-ident when you disconnect This ban will expire in 15 Minutes ."    break   }  } }}</code></pre></div>I get an error, is there something I did wrong? <br><div class="codebox"><p>Code: </p><pre><code>[08:12] Tcl error [ban:bnick]: can't read "bnchans": no such variable</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Sun Apr 02, 2006 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-02T10:11:44-04:00</updated>

		<published>2006-04-02T10:11:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61581#p61581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61581#p61581"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61581#p61581"><![CDATA[
You can create a list of channels<div class="codebox"><p>Code: </p><pre><code>set bnchans {#chan1 #chan2}</code></pre></div>and use<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact $bnchans $chan] == -1} {return 0}</code></pre></div>inside your proc(s). Here ofcourse, bnchans should be globalized inside the proc and you would want to make the channels lower-case since [lsearch] is case-sensitive.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Apr 02, 2006 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2006-04-01T19:52:53-04:00</updated>

		<published>2006-04-01T19:52:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61577#p61577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61577#p61577"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61577#p61577"><![CDATA[
could you post it?<br><br>I am an uber noob with TCL<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Sat Apr 01, 2006 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-02T08:40:57-04:00</updated>

		<published>2006-04-01T16:18:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61571#p61571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61571#p61571"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61571#p61571"><![CDATA[
such a feature has been posted like 30 times.<br><br>Edit: <a href="http://forum.egghelp.org/search.php" class="postlink">http://forum.egghelp.org/search.php</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Apr 01, 2006 4:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DJmart]]></name></author>
		<updated>2006-04-01T12:49:21-04:00</updated>

		<published>2006-04-01T12:49:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61569#p61569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61569#p61569"/>
		<title type="html"><![CDATA[Make this channel specific?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61569#p61569"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set badnicks [list "*[censored]*" "*dyn_*" "*dyn_user*"]bind join - * ban:bnickbind nick - * ban:bnickproc ban:bnick {nick uhost hand chan {nn ""}} {global badnicksset bbanmask "*!*@[lindex [split $uhost @] 1]"if {$nn == ""} { set nn $nick }if {![isbotnick $nick]} {  foreach badnick $badnicks {   if {[string match -nocase  $badnick $nn]} {    putserv "MODE $chan +b $bbanmask"    putserv "KICK $chan $nick :Please Identify, before you enter this channel, and or make sure you auto-ident when you disconnect This ban will expire in 15 Minutes ."    break   }  } }}</code></pre></div>Thats the code, yet, I want this to be for user defined channels such as<br><br>Channels: "#lamer" "#Smile" <br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7468">DJmart</a> — Sat Apr 01, 2006 12:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
