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

	<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-07-01T02:50:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-01T02:50:42-04:00</updated>

		<published>2004-07-01T02:50:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38078#p38078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38078#p38078"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38078#p38078"><![CDATA[
<blockquote class="uncited"><div>You can change the variable name to arg or args or idontcare or iforgotwhileediting or igavenexample to whatever you like.</div></blockquote>You can change it, yes, but you should understand the difference between poopoo and args, else you'll keep 'changing it' everywhere, until a bug pops up.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Thu Jul 01, 2004 2:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-30T16:02:51-04:00</updated>

		<published>2004-06-30T16:02:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38059#p38059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38059#p38059"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38059#p38059"><![CDATA[
You can change the variable name to arg or args or idontcare or iforgotwhileediting or igavenexample to whatever you like.<br><br>I was just trying to get the script working, whether args, which he posted the script originally in, or arg which I made it in my last post while editing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jun 30, 2004 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-06-30T11:52:15-04:00</updated>

		<published>2004-06-30T11:52:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38049#p38049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38049#p38049"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38049#p38049"><![CDATA[
Awyeah, try reading what respectable people like strikelight tell you. $args is a special variable in Tcl, it's always a list. Split is used for magically transforming strings into lists, so why are you splitting $args? :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Wed Jun 30, 2004 11:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-06-28T16:37:10-04:00</updated>

		<published>2004-06-28T16:37:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37993#p37993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37993#p37993"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37993#p37993"><![CDATA[
Is someone missing something that is staring them right in the face?<br>For a start, do <strong class="text-strong"><em class="text-italics">not</em></strong> use this:<div class="codebox"><p>Code: </p><pre><code>set killnicks { "dick" "bitch" }</code></pre></div>Use this:<div class="codebox"><p>Code: </p><pre><code>set killnicks { *dick**bitch*}</code></pre></div>Notice <strong class="text-strong"><em class="text-italics">no</em></strong> quotes?<br><br>That should fix at least one problem. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jun 28, 2004 4:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-28T15:34:05-04:00</updated>

		<published>2004-06-28T15:34:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37991#p37991</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37991#p37991"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37991#p37991"><![CDATA[
Hmmm, lets see now.<br><br>Is this set to the correct list index number, even?<br>Or you might be splitting it wrong.<br><div class="codebox"><p>Code: </p><pre><code>set usernick [lindex [split $args] 9]</code></pre></div>add these lines in the script<br><div class="codebox"><p>Code: </p><pre><code>putlog "/[1/] Bad user nick: [lindex [split $args] 9]"putlog "/[2/] Bad user nick: [lindex $args 9]"</code></pre></div>This should show you in dcc partyline with the bot when<br>the script runs the results, which of these is correct, by<br>giving results, or if it isn't correct.<br><br>This is to check if it is okay and should tell you if you have <br>set it on the correct list index.<br><br>---<br>Still hopeless if this doesn't do it then, you can try this.<br><br>remove this line from the script<br><div class="codebox"><p>Code: </p><pre><code>set usernick [lindex [split $args] 9]</code></pre></div>and then replace this line<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase *$nick* $usernick]} {</code></pre></div><br>by this line<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase *$nick* $args]} {</code></pre></div>Or try running this code, its the same after replacing if<br>you don't get what I have just said.<br><br>Infact try running this code<br><div class="codebox"><p>Code: </p><pre><code>set killnicks { "dick" "bitch" } set killreason "\00304Réason: \00301\037B\037\00314ad \00301\037N\037\00314ick \00301\037D\037\00314étéctéd\003" bind raw - NOTICE client:connect proc client:connect {from keyword arg} {  global killnicks killreason   if {[string match -nocase "*client connecting*" $arg]} {   foreach nick $killnicks {     if {[string match -nocase *$nick* $arg]} {      putserv "KILL $nick :$killreason"      return 0     }   } }}</code></pre></div>If still this doesn't do it, its a hopeless case  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><br>I rest my case  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 28, 2004 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-28T15:30:31-04:00</updated>

		<published>2004-06-28T15:30:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37990#p37990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37990#p37990"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37990#p37990"><![CDATA[
Maybe yeah, same procedure names or something... like I have 300, 400kb exceeding tcls in most of my eggies, heh.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 28, 2004 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZaKiR]]></name></author>
		<updated>2004-06-28T15:27:03-04:00</updated>

		<published>2004-06-28T15:27:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37989#p37989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37989#p37989"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37989#p37989"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set killnicks { "dick" "bitch" } set killreason "\00304Réason: \00301\037B\037\00314ad \00301\037N\037\00314ick \00301\037D\037\00314étéctéd\003" bind raw - NOTICE client:connect proc client:connect {from keyword args} { global killnicks killreason if {[string match "*Client connecting*" $args]} { set usernick [lindex [split $args] 9] foreach nick $killnicks { if {[string match -nocase *$nick* $usernick]} { putserv "KILL $nick :$killreason" break } } } } </code></pre></div>]<br><strong class="text-strong"><br>So how can i make this code working? i don`t have same proc</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5080">ZaKiR</a> — Mon Jun 28, 2004 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-06-28T15:24:06-04:00</updated>

		<published>2004-06-28T15:24:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37988#p37988</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37988#p37988"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37988#p37988"><![CDATA[
<blockquote class="uncited"><div>If you have too many scripts loaded.<br>Comment them temporarily and only use necessary<br>ones such as botnick identification and oper identification or so.<br><br>Then check if the script works.<br>Usually this happens with me as well, they some times<br>clash with other loaded scripts some where, if you have<br>too many loaded.</div></blockquote>They don't if you don't have same proc's <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Jun 28, 2004 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-06-28T15:11:42-04:00</updated>

		<published>2004-06-28T15:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37984#p37984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37984#p37984"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37984#p37984"><![CDATA[
If you have too many scripts loaded.<br>Comment them temporarily and only use necessary<br>ones such as botnick identification and oper identification or so.<br><br>Then check if the script works.<br>Usually this happens with me as well, they some times<br>clash with other loaded scripts some where, if you have<br>too many loaded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jun 28, 2004 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZaKiR]]></name></author>
		<updated>2004-06-28T04:56:55-04:00</updated>

		<published>2004-06-28T04:56:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37972#p37972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37972#p37972"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37972#p37972"><![CDATA[
yes i made another file for this this script called <strong class="text-strong">Kill-On-BadNick.tcl</strong> &amp; i put that on <strong class="text-strong">scripts</strong> folder &amp; in eggdrop.conf file i did....<br><blockquote class="uncited"><div>source scripts/alltools.tcl<br>source scripts/action.fix.tcl<br>source scripts/identifY.tcl<br>source scripts/OPER.tcl<br>source scripts/ChaN-LiMiT.tcl<br>source scripts/PinG.tcl<br>source scripts/SeeN.tcl<br>source scripts/ChanGE-BaD-NicK.tcl<br>source scripts/ReMovE-BaN.tcl<br>source scripts/AdvertisE.tcl<br>source scripts/Excess-Flood.tcl<br>source scripts/ResPonder.tcl<br>source scripts/KiLL-On-BadWord.tcl<br>source scripts/Kill-On-BadNick.tcl</div></blockquote>this file is at last... but then what's my error ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5080">ZaKiR</a> — Mon Jun 28, 2004 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-28T04:49:14-04:00</updated>

		<published>2004-06-28T04:49:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37971#p37971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37971#p37971"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37971#p37971"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>and also make sure you put that script in a new file, because if you have too many scripts on same file, they'll interact causing others to crash.</div></blockquote>Putting the code in a new file makes no difference what so ever unless you source the resulting file into another interpreter/namespace.</div></blockquote>I know it shouldn't but sometimes, if you have too many scripts, and you got a mistake in one, that's not showing any problems, on bots' start up, having a new file,  might help out, because it happened to me once, i had 2 wrong scripts, whenever i restart bot/rehash i don't get any errors. but they cause a script not to work, when i put that script in a new file, it was working fine. then again you can't be too cautious.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Mon Jun 28, 2004 4:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ZaKiR]]></name></author>
		<updated>2004-06-28T04:38:47-04:00</updated>

		<published>2004-06-28T04:38:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37970#p37970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37970#p37970"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37970#p37970"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set killnicks { "dick""bitch" } set killreason "\00304Réason: \00301\037B\037\00314ad \00301\037N\037\00314ick \00301\037D\037\00314étéctéd\003" bind raw - NOTICE client:connect proc client:connect {from keyword args} { global killnicks killreason if {[string match "*Client connecting*" $args]} { set usernick [lindex [split $args] 9] foreach nick $killnicks { if {[string match -nocase *$nick* $usernick]} { putserv "KILL $nick :$killreason" break } } } }</code></pre></div>Someone please check out all the lines &amp; say where is the error... This code is not working for bot nick <strong class="text-strong">'bitch'</strong> and <strong class="text-strong">'aabitchaa'</strong> ... thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5080">ZaKiR</a> — Mon Jun 28, 2004 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-06-28T02:29:19-04:00</updated>

		<published>2004-06-28T02:29:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37969#p37969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37969#p37969"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37969#p37969"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set killnicks {   *hell*  *dick*   *bitch*} </code></pre></div>Try this? <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=3646">Alchera</a> — Mon Jun 28, 2004 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-06-28T00:55:50-04:00</updated>

		<published>2004-06-28T00:55:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37964#p37964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37964#p37964"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37964#p37964"><![CDATA[
<blockquote class="uncited"><div>and also make sure you put that script in a new file, because if you have too many scripts on same file, they'll interact causing others to crash.</div></blockquote>Putting the code in a new file makes no difference what so ever unless you source the resulting file into another interpreter/namespace.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jun 28, 2004 12:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-27T18:04:15-04:00</updated>

		<published>2004-06-27T18:04:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37954#p37954</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37954#p37954"/>
		<title type="html"><![CDATA[Help Me With This Code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37954#p37954"><![CDATA[
and also make sure you put that script in a new file, because if you have too many scripts on same file, they'll interact causing others to crash.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sun Jun 27, 2004 6:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
