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

	<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>2015-06-04T13:15:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-06-04T13:15:00-04:00</updated>

		<published>2015-06-04T13:15:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104208#p104208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104208#p104208"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104208#p104208"><![CDATA[
this is the idea in msl  could some one translated it to tcl<br><br>it would be apreciated tnx in advance<br><div class="codebox"><p>Code: </p><pre><code>ON !*:JOIN:#: {  IF ($nick(#,$me,@&amp;~%)) { whois $nick } }Raw 319:*: {    IF ($regex($3-,/ $+ $regsubex(sex|incest|[sf]uck|h[0o][0o]|anal|fag|[censored]|ass|pussy|twat|gay,//g,.*) $+ /i)) {     VAR %bchans = $regml(1)    VAR %t = $comchan($2,0)    WHILE (%t) {      var %chanz1 = $comchan($2,%t)      IF ($nick(%chanz1,$me,@&amp;~%)) {        mode %chanz1 +b $address($2,4)         kick %chanz1 $2 your on a banned channel ( $+  $+($chr(35),*,%bchans,*) $+ ) leave it and rejoin.      }      DEC %t    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Jun 04, 2015 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-31T11:52:50-04:00</updated>

		<published>2015-05-31T11:52:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104199#p104199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104199#p104199"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104199#p104199"><![CDATA[
For one thing, the author misuses the argument args.<br>Please try this proc instead of the current one...<div class="codebox"><p>Code: </p><pre><code>proc bad:chan:chk {from mask arg} {   global badchanwrds colore   set arg [split $arg]   set nick [lindex $arg 1]   set listchans [lrange $arg 2 end]   regexp -- {^:?(.*)$} [join $listchans] -&gt; text   set text [split $text]   regsub -all $colore $text {} text   foreach txt $text {     foreach bw $::badchanwrds {       if {[string match -nocase "$bw" "$txt"]} {         badchan:kick $nick $bw         break       }     }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 31, 2015 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-05-31T10:46:32-04:00</updated>

		<published>2015-05-31T10:46:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104198#p104198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104198#p104198"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104198#p104198"><![CDATA[
hmm odd if you tested the same exact code and it did the ban could you post final code i might did some typo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 31, 2015 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-05-31T10:38:44-04:00</updated>

		<published>2015-05-31T10:38:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104197#p104197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104197#p104197"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104197#p104197"><![CDATA[
<blockquote class="uncited"><div>i did the sugestion you posted it still doesnt ban if bad chan is detected</div></blockquote>With a very brief test, for me it did do the ban.<br><br><blockquote class="uncited"><div>would you recommend another tcl wich has the option of wildcard <br><br>like: ch*annel*</div></blockquote>No, sorry.  I have not looked closely.<br><br>I like, and use, All Protection.   It can do this, but I don't recall if it can use wildcards.  Obviously, I don't use that function.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>It has a LOT of different protection functions.<br><br>If you want to check it out, the link to the author's download site/blog is in his post here:<br><a href="http://forum.egghelp.org/viewtopic.php?p=101239#101239" class="postlink">http://forum.egghelp.org/viewtopic.php?p=101239#101239</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun May 31, 2015 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-05-31T10:26:36-04:00</updated>

		<published>2015-05-31T10:26:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104196#p104196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104196#p104196"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104196#p104196"><![CDATA[
i did the sugestion you posted it still doesnt ban if bad chan is detected<br><br>would you recommend another tcl wich has the option of wildcard <br><br>like: ch*annel*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 31, 2015 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-05-31T10:05:45-04:00</updated>

		<published>2015-05-31T10:05:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104195#p104195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104195#p104195"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104195#p104195"><![CDATA[
<blockquote class="uncited"><div>....and does nothing else </div></blockquote>Find this:<div class="codebox"><p>Code: </p><pre><code> foreach chan $bchan_chans {      if {[onchan $nick $chan]} {         if {([isop $nick $chan]) || (![botisop $chan])} {return 0}         set bmask [getchanhost $nick $chan] ; set bmask [lindex [split $bmask @] 1]         putquick "MODE $chan +b *!*@$bmask" -next         putquick "KICK $chan $nick : $bchan_kmsg ($bchan)" -next         return 0      }      return 0   } </code></pre></div>Change to:<div class="codebox"><p>Code: </p><pre><code>foreach chan $bchan_chans {      if {[onchan $nick $chan]} {         if {([isop $nick $chan]) || (![botisop $chan])} {return 0}         set bmask [getchanhost $nick $chan] ; set bmask [lindex [split $bmask @] 1]         putquick "MODE $chan +b *!*@$bmask" -next         putquick "KICK $chan $nick : $bchan_kmsg ($bchan)" -next         return 0      }    ##  return 0   } </code></pre></div><blockquote class="uncited"><div>also it would help if throtle could be integrated so bot wont be disconnected if mass bots join channel choking the bot</div></blockquote>Sorry.<br>I don't care for this script.  <br>When looking at someone else's code, it is always difficult enough.<br>This one though, just seems extra strange to me.   Before I would do much more with it, I think I would just start over.<br><br>However, if you wish to continue with it, you can search this forum, for a couple of posts by the forum name of:<br>user<br><br>He posted a short throttle script, in a couple versions,  some time ago.  They are still here on the forum.<br>You can find them, examine them, and implement one of them if you wish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun May 31, 2015 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-05-31T08:40:18-04:00</updated>

		<published>2015-05-31T08:40:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104193#p104193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104193#p104193"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104193#p104193"><![CDATA[
also it would help if throtle could be integrated so bot wont be disconnected if mass bots join channel choking the bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 31, 2015 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-05-31T07:05:24-04:00</updated>

		<published>2015-05-31T07:05:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104192#p104192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104192#p104192"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104192#p104192"><![CDATA[
thanx for your reply willy i changed that and i also just tried your solution but it doesnt seem to help it whoises and does nothing else<br><br>and im not gettin any error neither<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 31, 2015 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-05-30T23:33:25-04:00</updated>

		<published>2015-05-30T23:33:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104191#p104191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104191#p104191"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104191#p104191"><![CDATA[
You changed this line, correct?<div class="codebox"><p>Code: </p><pre><code>set bchan_chans "*" </code></pre></div>Instead of a list of chans, you changed it to that asterisk ?<br><br><br>At a fast glance (I have not tested it) try this:<br><br>comment out that line,  then add a new line:<br><div class="codebox"><p>Code: </p><pre><code># set bchan_chans "*" set bchan_chans [channels]</code></pre></div>reference:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and find the <br>channels<br>command there and see the description.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat May 30, 2015 11:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-05-30T19:20:42-04:00</updated>

		<published>2015-05-30T19:20:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104189#p104189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104189#p104189"/>
		<title type="html"><![CDATA[bad channel with wildcard]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104189#p104189"><![CDATA[
hi folks,<br><br>i was wondering why this bad chan tcl doesnt work properly all i changed is the channel kicker cause i wanted it to work on all channels bot is sitting <br><div class="codebox"><p>Code: </p><pre><code>bind join - * bad:whoisbind raw - 319 bad:chan:chk# Set your Bad channel kicker's CHANNELS here (Type in lower case)set bchan_chans "*"# Set your Bad channel kicker's KICK MSG hereset bchan_kmsg "You are on a bad channel"######### Stop editing here, unless u know how to #####set badchanwrds {"*incest*""*sex*""*gay*"}proc bad:whois {n h c a} {global join_ctrif {[isbotnick $n]} {return 0}set c [string tolower $c]if {[matchattr $h f]} {return 0}putserv "WHOIS $n"if {![info exists join_ctr($c)]} {set join_ctr($c) 0}incr join_ctr($c) 1if {$join_ctr($c) &gt;= "5"} {set join_ctr($c) 1if {[catch {unbind join - * bad:whois}]} {}utimer 2 whois:reset}}proc whois:reset {} {bind join - * bad:whois}set colore {([\002\017\026\037]|[\003]{1}[0-9]{0,2}[\,]{0,1}[0-9]{0,2})}proc bad:chan:chk {from mask args} {global badchanwrds coloreset args [split $args]set nick [lindex $args 1]set listchans [lrange $args 2 end]regexp -- {^:?(.*)$} [join $listchans] -&gt; textset text [split $text]regsub -all $colore $text {} textforeach txt $text {foreach bw $::badchanwrds {if {[string match -nocase "$bw" "$txt"]} {badchan:kick $nick $bwbreak}}}}proc badchan:kick {nick bchan} {global bchan_chans bchan_bantime bchan_kmsgforeach chan $bchan_chans {if {[onchan $nick $chan]} {if {([isop $nick $chan]) || (![botisop $chan])} {return 0}set bmask [getchanhost $nick $chan] ; set bmask [lindex [split $bmask @] 1]putquick "MODE $chan +b *!*@$bmask" -nextputquick "KICK $chan $nick : $bchan_kmsg ($bchan)" -nextreturn 0}return 0}}foreach c $bchan_chans {set join_ctr($c) 0}array set join_ctr {}putlog "badchan.tcl Banned Channel Protection loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat May 30, 2015 7:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
