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

	<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>2023-01-10T17:45:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[PeLLq]]></name></author>
		<updated>2023-01-10T17:45:47-04:00</updated>

		<published>2023-01-10T17:45:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111614#p111614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111614#p111614"/>
		<title type="html"><![CDATA[It 's old , but I hope they can fix a small detail .]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111614#p111614"><![CDATA[
In this tcl you can add an exepm to nicks so that when you run the timer scan it doesn't read added users?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12797">PeLLq</a> — Tue Jan 10, 2023 5:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-30T18:30:50-04:00</updated>

		<published>2005-11-30T18:30:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57848#p57848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57848#p57848"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57848#p57848"><![CDATA[
You either ban a channel by adding it to the list OR you do not ban it (hence exempted)!<br><blockquote class="uncited"><div>... I suggest you study Tcl:<br><br><a href="http://suninet.org/tclguide/" class="postlink">Guide to TCL scripting for Eggdrop 1.6</a><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/" class="postlink">man/tcl8.4/TclCmd/</a><br><a href="http://johoho.eggheads.org/eggdrop/other/guide2tcl.html#Triggers_for_code" class="postlink">A beginners guide to TCL with focus on Eggdrop</a><br><a href="http://tcl.b0rk.de/mirror/eggdrop1.6.15/html/tcl-commands.html" class="postlink">Eggdrop Tcl Commands</a><br><a href="http://www.peterre.com/characters.html" class="postlink">How to write eggdrop scripts that won't choke on special characters</a></div></blockquote>Did "you got it ?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Nov 30, 2005 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Paladin]]></name></author>
		<updated>2005-11-30T14:29:38-04:00</updated>

		<published>2005-11-30T14:29:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57844#p57844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57844#p57844"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57844#p57844"><![CDATA[
i am quite aware what can do this tcl! read the explanation 3 times and if it not enough to understand what i want read it more... i want it with CHANNEL EXEMTION. this means when i have shitlisted *hacker* i don`t want the bot ban a user who is in #hackers (#hackers is channel exempted). now did you got it ?<br>greetings<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6741">Paladin</a> — Wed Nov 30, 2005 2:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-30T08:51:42-04:00</updated>

		<published>2005-11-30T08:51:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57835#p57835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57835#p57835"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57835#p57835"><![CDATA[
The link I pasted uses wildcards i.e. *hacker*<br><br>If that is not good enough for you then I suggest you study Tcl:<br><br><a href="http://suninet.org/tclguide/" class="postlink">Guide to TCL scripting for Eggdrop 1.6</a><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/" class="postlink">man/tcl8.4/TclCmd/</a><br><a href="http://johoho.eggheads.org/eggdrop/other/guide2tcl.html#Triggers_for_code" class="postlink">A beginners guide to TCL with focus on Eggdrop</a><br><a href="http://tcl.b0rk.de/mirror/eggdrop1.6.15/html/tcl-commands.html" class="postlink">Eggdrop Tcl Commands</a><br><a href="http://www.peterre.com/characters.html" class="postlink">How to write eggdrop scripts that won't choke on special characters</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Nov 30, 2005 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Paladin]]></name></author>
		<updated>2005-11-30T08:41:43-04:00</updated>

		<published>2005-11-30T08:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57833#p57833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57833#p57833"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57833#p57833"><![CDATA[
damned I need bad chan tcl having blacklisting with wildcards and exemption for specified channels (the exemption is about when you blacklist a channel, whos name contains *sex* and the exempt channel is sexy the user do not got banned) capish ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6741">Paladin</a> — Wed Nov 30, 2005 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-26T18:45:08-04:00</updated>

		<published>2005-11-26T18:45:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57725#p57725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57725#p57725"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57725#p57725"><![CDATA[
<a href="http://mc.purehype.net/index.tcl?info=Ban+Channel" class="postlink">http://mc.purehype.net/index.tcl?info=Ban+Channel</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Nov 26, 2005 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-26T17:30:41-04:00</updated>

		<published>2005-11-26T17:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57720#p57720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57720#p57720"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57720#p57720"><![CDATA[
"all-in-one" script doesn't imply you have to use all features, even those you don't need<br><br>this is even more so for xchannel, which is highly configurable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Nov 26, 2005 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Paladin]]></name></author>
		<updated>2005-11-26T15:35:05-04:00</updated>

		<published>2005-11-26T15:35:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57717#p57717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57717#p57717"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57717#p57717"><![CDATA[
i said i need a bad chan script not all in one script,<br>greetings <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6741">Paladin</a> — Sat Nov 26, 2005 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-26T13:30:18-04:00</updated>

		<published>2005-11-26T13:30:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57702#p57702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57702#p57702"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57702#p57702"><![CDATA[
don't use bloated amateur scripts, use <a href="http://demond.net/xchannel.tcl" class="postlink">xchannel</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Nov 26, 2005 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Paladin]]></name></author>
		<updated>2005-11-26T11:54:47-04:00</updated>

		<published>2005-11-26T11:54:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57700#p57700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57700#p57700"/>
		<title type="html"><![CDATA[bad chan tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57700#p57700"><![CDATA[
hi,<br>my question is how can on this code can be added section with channel exemption code: <div class="codebox"><p>Code: </p><pre><code>##################################################### # BanChan 3.4 TCL # #  This script is based on ChanBan, but it is not really a new version of it.  After having used ChanBan2.2b.tcl for a few #  months, it started to really piss me off.  It had a weird timing bug that would start banning/kicking the wrong users. #  I finally set out to squish the bug, and stared in wide-eye'd amazment at the mess of code.  I started trying to patch #  it, but it was hopeless.  I started from stratch, and what we have here is a nice clean script. ##################################################### # v3.0 - Clown-Man, fresh script # v3.1 - Fixed bug where people with "{" or "}" in their nicks threw off the list functions! # v3.2 - Fixed a bug where ANY chan the bot joined it would scan nicks! # v3.3 - Fixed the multiple timer bug (after .rehash) # v3.4 - Added a different banmask (*!*@host) # Comments, Suggestions, Bug reports? ClownMan@cgocable.net ##################################################### # Script by Clown-Man ClownMan@cgocable.net EFnet ( #Cracks #FreeISO #WarezCREW #Faith2000 ) # # Big thanks goes out to H3llSp4wn for being such an awesome scripter who is willing to let me bug him all day for help :-P ###################################################### # TODO: #  1) Maybe make a way to warn ppl b4 they get banned like in the old versions (this caused timeing errors b4 ....) #  2) Add checking for all chans #  3) A kick b4 the ban so chan ppl can see what's happening ##################################################### # Options: # Set the channels you want to check users on # include the "#" and seperate them by a space.  EG set checkchans "#chan1 #chan3 #otherchan" set checkchans "#warezcrew" # Words of channels that will be banned, seperated by a space.  If you put set badchans "badc list" # the channels that would # be banned are #badchan #chanbadc #listchan #chanthatlists etc ...... set badchans "list warez-world warez_sitez warez&amp;scripts cablewarez98 hyperwarez leechftp 100%warez protonwarez LEETwarez" # Minutes between each full check of a channel.  NOTE - do not set this low if you have a lot of people! # This is a huge load on the server/bot so don't be an idiot and check every 1 min on a chan with 100 people.  # The bot will lag out (or get k-lined) set intervalcheck 10 # Length of ban for being on the wrong chan (in minutes) set idiotbantime 3 # The reason listed on the banlist.  This is also used when the bot msgs them saying how long they were banned for and why. set banmsg "You are not allowed to be in any list channels while in #WarezCREW" ##################################################### # END OF OPTIONS # Do not edit anything below here unless you are making a version change! ##################################################### bind JOIN - * banchan:join bind RAW - 319 banchan:response bind RAW - 353 banchan:names if {[string match "*banchan:scan*" [timers]] == 0} {   timer $intervalcheck banchan:scan } proc banchan:names {from keyword nicklist} {   global checkchans   set nicklist [banchan:charfilter $nicklist]   set nicklist [lrange $nicklist 3 end]   set chanfrom ""   append chanfrom "*" [lindex $nicklist 2] "*"   set chanfrom [string tolower $chanfrom]   if {[string match $chanfrom $checkchans]} {     return 1   }   set currnicknum 0   set currentnick "b4"   while {$currentnick != ""} {     set currentnick [lindex $nicklist $currnicknum]     if {[string range $currentnick 0 0] == "@" || [string range $currentnick 0 0] == "+" || [string range $currentnick 0 0] == ":"} {       set currentnick [string range $currentnick 1 end]     }     if {[string range $currentnick 0 0] == "@" || [string range $currentnick 0 0] == "+" || [string range $currentnick 0 0] == ":"} {       set currentnick [string range $currentnick 1 end]     }     putserv "WHOIS $currentnick"     incr currnicknum   } } proc banchan:scan { } {   global checkchans intervalcheck   set tocheck [string tolower $checkchans]   set ccnum 0   set total [llength $tocheck]   while {$ccnum &lt; $total} {     putlog "BanChan: Scanning [lindex $tocheck $ccnum]"     putserv "NAMES [lindex $tocheck $ccnum]"     incr ccnum   }   if {[string match "*banchan:scan*" [timers]] == 0} {     timer $intervalcheck banchan:scan   } } proc banchan:join {nick uhost handle channel} {   global checkchans   set checkchans [string tolower $checkchans]   set channel [string tolower $channel]   set matchpattern "*$channel*"   if {[string match $matchpattern $checkchans] == 1} {     putserv "WHOIS $nick"     return 0   } else {     return 0   } } proc banchan:response {from keyword arg} {   global badchans banmsg idiotbantime checkchans   set badchans [string tolower $badchans]   set badchans [concat $badchans]   set arg [banchan:charfilter $arg]   set currentchannel "empty"   set chanlistnum 2   set nick [lindex $arg 1]   set matchpattern ""   while {$currentchannel != ""} {     set currentchannel [lindex $arg $chanlistnum]     set currentchannel [string tolower $currentchannel]     if {$currentchannel == ""} {       break     }     if {$chanlistnum == 2} {       set currentchannel [string range $currentchannel 1 end]     }     if {[string range $currentchannel 0 0] == "@" || [string range $currentchannel 0 0] == "+"} {       set currentchannel [string range $currentchannel 1 end]     }     set currentbannum 0     while {[llength $badchans] &gt; $currentbannum} {       set matchpattern "*[lindex $badchans $currentbannum]*"       if {[string match $matchpattern $currentchannel]} {         set uhost [getchanhost $nick]         if {$uhost == ""} {            return 0         }         set tempi [expr [string first @ $uhost] + 1]         set uhost "*!*@[string range $uhost $tempi end]"         set chantomsglist [string tolower $checkchans]         set chantomsgnum 0         while {$chantomsgnum &lt; [llength $chantomsglist]} {           set currentchantomsg [lindex $chantomsglist $chantomsgnum]           if {[onchan $nick $currentchantomsg] == 1} {             putserv "PRIVMSG $currentchantomsg :$nick is being banned for being on $currentchannel"           }           incr chantomsgnum         }         utimer 5 [banchan:delayedban $uhost]         putserv "PRIVMSG $nick :You have been banned for $idiotbantime minutes, because you were in a forbiddon channel ($currentchannel). Please part that channel and return when your ban time is up!"         return 0       }       incr currentbannum     }     incr chanlistnum   }   return 0 } proc banchan:delayedban { banhost } {   global banmsg idiotbantime   newban $banhost "BanChan3.2" "$banmsg" $idiotbantime } proc banchan:charfilter {x {y ""}} {  for {set i 0} {$i &lt; [string length $x]} {incr i} {   switch -- [string index $x $i] {   "\"" {append y "\\\""}   "\\" {append y "\\\\"}   "\[" {append y "\\\["}   "\]" {append y "\\\]"}   "\{" {append y "\\\{"}   "\}" {append y "\\\}"}   default {append y [string index $x $i]}   }  }  return $y } putlog "BanChan 3.4 By Clown-Man Loaded"</code></pre></div>thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6741">Paladin</a> — Sat Nov 26, 2005 11:54 am</p><hr />
]]></content>
	</entry>
	</feed>
