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

	<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>2010-01-03T06:54:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-03T06:54:12-04:00</updated>

		<published>2010-01-03T06:54:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91534#p91534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91534#p91534"/>
		<title type="html"><![CDATA[Please help with shitlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91534#p91534"><![CDATA[
This behaviour is partly due to the fact that you use the lindex command on a string, rather than a proper list. Whenever you need to use lindex, and the data i not a valid list, atleast take the time to use split to convert it into a list.<br><br>Also, RFC1459 case mapping is rather different for extended characters than tcl's. This could also be a source for your issues.<br><br>Finaly, why don't you just use the internal banlist within eggdrop? Seems to me tbat you are simply trying to re-invent the wheel..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jan 03, 2010 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2010-01-02T23:15:01-04:00</updated>

		<published>2010-01-02T23:15:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91530#p91530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91530#p91530"/>
		<title type="html"><![CDATA[Please help with shitlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91530#p91530"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub_+akick {nick uhost hand channel param} {global botname botnickset rest [lindex $param 0]if {$rest == ""} {puthelp "NOTICE $nick :Usage: +akick &lt;nick/hostname&gt;"return 0}if {$rest == "*" || $rest == "*!*@*"} {puthelp "NOTICE $nick :invalid hostname..!"return 0}if {$rest == $botnick} {puthelp "NOTICE $nick :DeNiEd..!"return 0}if {[validuser $rest]} {puthelp "NOTICE $nick :$rest is already on database with flags: [chattr $rest]"return 0}  if {![string match "*@*" $rest]} {set rest "$rest!*@*"}if {[string match $rest $botname]} {puthelp "NOTICE $nick :DeNiEd..!"return 0}if {[finduser $rest] != "*"} {if {[finduser $rest] != "AKICK"} {puthelp "NOTICE $nick :That Host Belongs To [finduser $rest]"}puthelp "NOTICE $nick :That Host already in [finduser $rest]"return 0}puthelp "NOTICE $nick :ADD \[$rest\] To KIcKLIsT..!"utimer 1 [list setuser "AKICK" HOSTS $rest]saveuserforeach x [channels] {if {[isop $botnick $x]} {foreach c [chanlist $x K] {if {![matchattr $c f]} {akick_chk $c [getchanhost $c $x] $x}}}}return 0}proc akick_chk {nick uhost chan} {global bannickforeach x [getuser "AKICK" HOSTS] {if {[string match [string tolower $x] [string tolower "$nick!$uhost"]]} {set bannick($nick) $xputquick "KICK $chan $nick : Blacklist MaTcH FRoM  $x]"return 0}}}</code></pre></div>That's scripts for adding the shitlist, it working fine with a list without a special character like [,],{,},\ . it will return nothing when i added the shitlist with the special character like [user, [user], \user\. any idea hot to get it working with any shitlist like service of chanserv, [*]!@* or [test!*@*. <br>Here's the list in the  cfgfile<div class="codebox"><p>Code: </p><pre><code>AKICK      - K--HOSTS telnet!*@*--HOSTS *!*@91.102.*--HOSTS *!*HeliX@110.*--HOSTS [Windows!*@*</code></pre></div>so the scripts will not kick that nick [Windows, when it join to channel. i've already add the akick_chk in to lines of "bind join" aswell.<br>Please help with that code. Thankyou<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Sat Jan 02, 2010 11:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
