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

	<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>2009-01-28T17:58:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[buuhuu]]></name></author>
		<updated>2009-01-28T17:58:04-04:00</updated>

		<published>2009-01-28T17:58:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87139#p87139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87139#p87139"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87139#p87139"><![CDATA[
yeah, i think that would be a nice extension and shouldnt take too much time to add it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10455">buuhuu</a> — Wed Jan 28, 2009 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-01-28T16:54:53-04:00</updated>

		<published>2009-01-28T16:54:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87136#p87136</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87136#p87136"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87136#p87136"><![CDATA[
I won't promise anything since it has been long since I updated the script but I will keep this in consideration whenever I decide to modify the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jan 28, 2009 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[buuhuu]]></name></author>
		<updated>2009-01-28T15:17:25-04:00</updated>

		<published>2009-01-28T15:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87133#p87133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87133#p87133"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87133#p87133"><![CDATA[
Hey,<br><br>thx, it looks really great <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Do you think that you can add a realname check on it as well?<br>Its because i dont think that it would be clever to load a second script for this because the user would be whoised twice :-/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10455">buuhuu</a> — Wed Jan 28, 2009 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-01-28T14:17:01-04:00</updated>

		<published>2009-01-28T14:17:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87132#p87132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87132#p87132"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87132#p87132"><![CDATA[
<a href="http://forum.egghelp.org/viewtopic.php?t=9721" class="postlink">AllProtection</a> has bad/excess channels protection + it scans on interval (with queuing to avoid flooding out on huge channels), try it if suitable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jan 28, 2009 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-01-28T11:35:30-04:00</updated>

		<published>2009-01-28T11:35:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87129#p87129</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87129#p87129"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87129#p87129"><![CDATA[
buuhuu, I'm not quite sure you actually read my post.<br>I never suggested replacing various matches with a new <strong class="text-strong">string match</strong> test. Instead I pointed at the possibility of altering the script to use lsearch on a list, aswell as pointing out the issue of case sensitivity. The highlighted code is just one of several string-based matches done in the code that would have to be altered.<br><br>So, no, <em class="text-italics">I</em> did not ignore any part, nor did I provide a complete solution, rather ideas on how this could be achieved. Personally, I try to avoid posting works based on other works not under an open source license, or released in the public domain.<br>In most cases, "we" recommend trying to get in touch with the author whenever possible. Unfortunately, this may not always be possible for various reasons, or the author may choose not to provide any further assistance.<br>I cannot say whether you've been in touch with the author, or under what kind of license (if any) this script is released under, so I am thus uncomfortable making a complete rewrite of the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jan 28, 2009 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[buuhuu]]></name></author>
		<updated>2009-01-28T05:53:30-04:00</updated>

		<published>2009-01-28T05:53:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87125#p87125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87125#p87125"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87125#p87125"><![CDATA[
Hey,<br><br>yeah, i know this script as well but there is no real name check and there is an interval check for checking the whole channel every X min but if u have more than 200 ppl on your chan u cant use it.. :/<br>moreover this script got no floodprotection.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10455">buuhuu</a> — Wed Jan 28, 2009 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Callisto]]></name></author>
		<updated>2009-01-28T04:28:02-04:00</updated>

		<published>2009-01-28T04:28:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87124#p87124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87124#p87124"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87124#p87124"><![CDATA[
Hi, I use banchan by MC8, you can search for it in the TCL archive or go to <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=32" class="postlink">http://www.egghelp.org/cgi-bin/tcl_arch ... load&amp;id=32</a><br>Hope this works better for you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6064">Callisto</a> — Wed Jan 28, 2009 4:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[buuhuu]]></name></author>
		<updated>2009-01-28T02:29:02-04:00</updated>

		<published>2009-01-28T02:29:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87123#p87123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87123#p87123"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87123#p87123"><![CDATA[
Hey,<br><br>first of all thx for being that fast <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Unfortunately, its not working <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>Now its doing nothing if i join a chan while i do idle in a bad one<br><br>i did replace:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "*[string trimleft $bla ":@+"]*" $bwhois(chans)]} { </code></pre></div>with this:<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "*$chan*" $bwhois(chans)]} {</code></pre></div>but if it would be fine, u did ignore this part:<br><div class="codebox"><p>Code: </p><pre><code>"*[string trimleft $bla ":@+"]*"</code></pre></div>didnt you?´<br><br>one more thing is, you wrote that this script should be rewritten in several locations and i did search a couple of hours for any help for this script or any other but it seems to be the only script for checking for bad chans and bad realname, so maybe it would be expedient if someone could write a new one? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>I would be really happy about this and i guess a lot more people as well because ive seen a lot of problems with this script when i was looking for help for my problem with ist :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10455">buuhuu</a> — Wed Jan 28, 2009 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-01-27T17:46:58-04:00</updated>

		<published>2009-01-27T17:46:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87120#p87120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87120#p87120"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87120#p87120"><![CDATA[
This script would have to be rewritten in several locations, as channel-checking is currently done like this:<div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "*$chan*" $bwhois(chans)]} {</code></pre></div>Unfortunately, this cannot be straight swapped with an <strong class="text-strong">lsearch</strong>, as <strong class="text-strong">lsearch</strong> does not support case-insensitive searching, and case may vary on the channelname. One workaround would be to always make sure channel-names are treated in lowercase (using <strong class="text-strong">string tolower</strong>) all throughout the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 27, 2009 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[buuhuu]]></name></author>
		<updated>2009-01-27T17:16:28-04:00</updated>

		<published>2009-01-27T17:16:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87119#p87119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87119#p87119"/>
		<title type="html"><![CDATA[badwhois]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87119#p87119"><![CDATA[
Hey guys,<br><br>Im using badwhois.tcl at the moment but ive got a little problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>The chan checker isnt accurate because if i activate the script in #channel with ".chanset #channel +badwhois" and put #channel2 on the bwhois(chans) category, the script is banning every user who joins #channel because #channel matchs #channel2 :/<br><br>can u tell me maybe what i have to do?<br><br>thats the code:<br><div class="codebox"><p>Code: </p><pre><code>## ¤ BadWhois# version 0.1# caesar &lt;cezarica [at] prietenii [dot] com&gt;# #eggdrop @ Undernet.org# http://www.r0x0ring.com/##### ¤ Description:# Performs a whois on join and places a *!*@host ban if mathes a banned realname or a banned channel.##### ¤ Available commands:##     Where  Flag Command   Description#     -----  ---- -------   -----------#     PUB : N/A##     MSG : N/A##     DCC :  n|n .chanset   Use .chanset to set what protections to active for the particular channel or not.#                           Example: .chanset #mychan +badwhois#                                    .chanset #otherchan -badwhois##### ¤ Custom channel flags:##  Flag:       Description:#  -----       ------------#  +badwhois  Channels marked with this flag will be "checked" for bad realnames and bad channels on join.## Attention!#  By default the channel flag (badwhois) is disabled. Enable it on the channels you wish.#  Don't use this script#### Adjust the folowing things to suit your needs!# .1. What bad realnames should be banned?set bwhois(list) {"*eggdrop*""*bot by*"}# .2. What bad channels should be banned?set bwhois(chans) {#channel #channel2 #channel3}# .3. Specify the ban reason and the ban time (in minutes) for a bad realname:set bwhois(br) {"Sorry, you are not welcome in here!" 10}# .4. Specify the ban reason and the ban time (in minutes) for a bad channel:set bwhois(bc) {"Sorry, you are not allowed to be in any blacklisted channels while in here!" 1}# .4. Number of joins in seconds do a delayed whois.set bwhois(flud) "5:3:6"### ¤ Don't edit past here unless you know TCL! ¤#set bwhois(version) "0.1"setudef flag badwhois### ¤ bindsbind join * * badwhois:joinbind part - * badwhois:partbind raw - 311 badwhois:checkbind raw - 319 badwhois:chans### ¤ whois on joinproc badwhois:join {nick uhost hand chan} {  global bflud bwhois  if {![channel get $chan badwhois] || [isbotnick $nick ] || [matchattr $hand f|f $chan]} {    return  }  if {![info exists bflud($chan)]} {    set bflud($chan) 0  }  incr bflud($chan)  utimer [lindex [set bla [split $bwhois(flud) ":"]] 1] [list incr bflud($chan) -1]  if {$bflud($chan) &gt;= [lindex $bla 0]} {    puthelp "WHOIS $nick"    } else {    utimer [lindex $bla 2] [puthelp "WHOIS $nick"]  }  lappend bwhois(whois) "$nick:$chan:*!*@[lindex [split $uhost @] 1]"}### ¤ realname checkproc badwhois:check {from key txt} {  global bwhois  if {![info exists bwhois(whois)]} {    set bwhois(whois) ""  }  if {[isbotnick [set nick [lindex [split $txt] 1]]] || [validuser [nick2hand $nick]]} {    return  }  set realname [stripcodes bcruag [string range [join [lrange [split $txt] 5 end]] 1 end]]  foreach bla $bwhois(list) {    if {[string match -nocase $bla $realname]} {      set position [lsearch $bwhois(whois) "*:[set mask *!*@[lindex [split $txt] 3]]*"]      if {[botisop [set chan [lindex [set t [split [lindex $bwhois(whois) $position] :]] 1]]]} {        putquick "KICK $chan $nick :[lindex $bwhois(br) 0]" -next      }      newchanban $chan $mask BadWhois [lindex $bwhois(br) 0] [lindex $bwhois(br) 1]      set bwhois(whois) [lreplace $bwhois(whois) $position $position]      break    }  }}### ¤ channels checkproc badwhois:chans {from key txt} {  global bwhois  if {[isbotnick [set nick [lindex [split $txt] 1]]] || [validuser [nick2hand $nick]]} {    return  }  if {[set position [lsearch $bwhois(whois) "*$nick:*"]] != -1} {    foreach bla [lrange $txt 2 e] {      if {[string match -nocase "*[string trimleft $bla ":@+"]*" $bwhois(chans)]} {        if {[botisop [set chan [lindex [set t [split [lindex $bwhois(whois) $position] :]] 1]]]} {          putserv "PRIVMSG $nick :You have been banned for being on a bad channel"          putquick "KICK $chan [lindex $t 0] :[lindex $bwhois(bc) 0]" -next        }        newchanban $chan [lindex $t 2] BadWhois [lindex $bwhois(bc) 0] [lindex $bwhois(bc) 1]        set bwhois(whois) [lreplace $bwhois(whois) $position $position]        break      }    }  }}### ¤ array removeproc badwhois:part {nick uhost hand chan msg} {  global bflud  if {[isbotnick $nick] &amp;&amp; [string match -nocase "*$chan*" [array names bflud]]} {    array unset bflud $chan  }}putlog "badwhois v$bwhois(version) loaded.."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10455">buuhuu</a> — Tue Jan 27, 2009 5:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
