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

	<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>2004-05-17T01:50:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-17T01:50:47-04:00</updated>

		<published>2004-05-17T01:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36392#p36392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36392#p36392"/>
		<title type="html"><![CDATA[Need a litle help with script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36392#p36392"><![CDATA[
Just replace your script code by this entire<br>code, this should work.<br><br>It will only kick the nick out and not<br>ban it, both even if its an owner (+n)<br>or even if its an unrecognized (normal)<br>user to the bot.<br><div class="codebox"><p>Code: </p><pre><code>bind join - * BandNick proc BandNick {nick uhost hand chan} {  putlog "$nick $uhost $hand $chan"  global botnick BandNickChan BandNicks channel text  if {(([lsearch -exact [string tolower $BandNickChan] [string tolower $chan]] != -1)  || ($BandNickChan == "*"))} {   set temp 0    foreach i [string tolower $BandNicks] {    if {[string match *$i* [string tolower $nick]]} {    set temp 1     }     }    if {!$temp} { return }   if {([ matchattr $hand n])} {    return 1    } elseif {[matchattr $hand 4]} {    putquick "KICK $chan $nick :$BadReason"   chattr $hand +k4    return 1    } else {    set BadReason ":D"    putquick "KICK $chan $nick :$BadReason"   putserv "KICK $chan $nick :Cambia de nick por Favor..."    putserv "PRIVMSG $nick :0,4Hola Disculpa La Molestia, pero estas Usando un NickName no permitido"    putserv "PRIVMSG $nick :Por Favor Cambia de nick Si es quew Deseas Volver a entrar al Canal, "    putserv "PRIVMSG $nick :Si Deseas cambiar de NickName (el nombre con el que estas ahora) Escribe: /Nick NickName"    putserv "PRIVMSG $nick :Recuerda no ponerte nick's que contengan estas palabras: Activ, Pasiv, Sex, cm, put, Follado,"    putserv "PRIVMSG $nick :Moderno, cacher, ping, verg, dotad, y nick's Obsenos o seras Baneado del canal, Gracias!"    return 0   }  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon May 17, 2004 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-05-13T10:26:37-04:00</updated>

		<published>2004-05-13T10:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36313#p36313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36313#p36313"/>
		<title type="html"><![CDATA[Need a litle help with script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36313#p36313"><![CDATA[
I think that replacing:<div class="codebox"><p>Code: </p><pre><code>   } elseif {[matchattr $hand 4]} {    newchanban $chan $nick $botnick $BadReason perm    chattr $hand +k4    return 1    } else {    set BadReason ":D"    newchanban $chan $nick $botnick $BadReason 60</code></pre></div>by<div class="codebox"><p>Code: </p><pre><code>   } else {</code></pre></div>Should be enough <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=3672">KrzychuG</a> — Thu May 13, 2004 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-05-12T19:53:07-04:00</updated>

		<published>2004-05-12T19:53:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36307#p36307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36307#p36307"/>
		<title type="html"><![CDATA[Need a litle help with script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36307#p36307"><![CDATA[
Ok.I have one script that kick+ban people that joins with bad nick and send a msg to them.I Whant that this script only kick people without baning them.<div class="codebox"><p>Code: </p><pre><code>bind join - * BandNickproc BandNick {nick uhost hand chan} { putlog "$nick $uhost $hand $chan" global botnick BandNickChan BandNicks channel text if {(([lsearch -exact [string tolower $BandNickChan] [string tolower $chan]] != -1)  || ($BandNickChan == "*"))} {  set temp 0foreach i [string tolower $BandNicks] {if {[string match *$i* [string tolower $nick]]} {set temp 1 } }if {!$temp} { return }  if {([ matchattr $hand n])} {   return 1   } elseif {[matchattr $hand 4]} {   newchanban $chan $nick $botnick $BadReason perm   chattr $hand +k4   return 1   } else {   set BadReason ":D"   newchanban $chan $nick $botnick $BadReason 60   putserv "KICK $chan $nick :Cambia de nick por Favor..."   putserv "PRIVMSG $nick :0,4Hola Disculpa La Molestia, pero estas Usando un NickName no permitido"   putserv "PRIVMSG $nick :Por Favor Cambia de nick Si es quew Deseas Volver a entrar al Canal, "   putserv "PRIVMSG $nick :Si Deseas cambiar de NickName (el nombre con el que estas ahora) Escribe: /Nick NickName"   putserv "PRIVMSG $nick :Recuerda no ponerte nick's que contengan estas palabras: Activ, Pasiv, Sex, cm, put, Follado,"   putserv "PRIVMSG $nick :Moderno, cacher, ping, verg, dotad, y nick's Obsenos o seras Baneado del canal, Gracias!"   return 0  } }}putlog "0,4Tcl Cargado Exitosamente :D"</code></pre></div><strong class="text-strong">Thanks a lot everyone for help</strong><p>Statistics: Posted by Guest — Wed May 12, 2004 7:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
