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

	<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-09-10T15:49:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-10T15:49:00-04:00</updated>

		<published>2004-09-10T15:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40814#p40814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40814#p40814"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40814#p40814"><![CDATA[
np<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Fri Sep 10, 2004 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-10T13:29:43-04:00</updated>

		<published>2004-09-10T13:29:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40810#p40810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40810#p40810"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40810#p40810"><![CDATA[
At last, everything works fine! Thank you all for your time!<br>Big thanks to awyeah and Alchera! Respect lads!   <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=4435">guest</a> — Fri Sep 10, 2004 1:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-09-09T21:21:55-04:00</updated>

		<published>2004-09-09T21:21:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40783#p40783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40783#p40783"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40783#p40783"><![CDATA[
<blockquote class="uncited"><div>I know the strict-host is a useless function because it always doesn't work. </div></blockquote>Since when?<br><br>I have actually tested that setting in more than one bot on more than one shell (Sun, FreeBSD &amp; Red Hat) and it works exactly as intended. <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> — Thu Sep 09, 2004 9:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-08T10:57:50-04:00</updated>

		<published>2004-09-08T10:57:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40711#p40711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40711#p40711"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40711#p40711"><![CDATA[
I really dont see any problem<br><blockquote class="uncited"><div>&lt;gb&gt; .tcl getchanhost Nick #chan<br>&lt;bot&gt; Tcl: ~<a href="mailto:ident@dsl-123-456.isp.com">ident@dsl-123-456.isp.com</a><br><br>&lt;gb&gt; .tcl maskhost [getchanhost Nick #chan]<br>&lt;bot&gt; Tcl: *!*ident@*.isp.com</div></blockquote>You guys are dumb  <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=24">greenbear</a> — Wed Sep 08, 2004 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-08T05:10:41-04:00</updated>

		<published>2004-09-08T05:10:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40704#p40704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40704#p40704"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40704#p40704"><![CDATA[
Haha, go ask 'gb' now. I know the strict-host is a useless function because it always doesn't work. That's why I never used it and never recommend it. Trimming the "~" in host of the string is the best way to deal with this.<br><br>Hmmm, I think I know why it wasn't stripped because we are splitting the uhost into the ident and host region between the @ to make the banmask ourself. If we don't split and just use the variable $uhost in the proc then in the result for $uhost will have a stripped "~". But here we cannot use $uhost as you want maskhost with the lindex 1 of the $uhost. So the best way is to trim it anyhow.<br><br>Anyway you had set strict-host to 0 in your eggdrop.conf, so it is set as global anyway, no need to set it in the tcl, as it is the same. You can set it in your .conf file or .tcl files, the end result will be the same as they will be global in both cases.<br><br>Now what you can do here to 100% strip that "~" from all bans is replace this:<div class="codebox"><p>Code: </p><pre><code>set banmask "*!*[lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]"</code></pre></div>with this code:<div class="codebox"><p>Code: </p><pre><code>set banmask "*!*[string trimleft [lindex [split $uhost "@"] 0] "~"]@[lindex [split [maskhost $uhost] "@"] 1]"</code></pre></div>and then your problem would have been solved!  <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=4875">awyeah</a> — Wed Sep 08, 2004 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-08T03:44:03-04:00</updated>

		<published>2004-09-08T03:44:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40703#p40703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40703#p40703"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40703#p40703"><![CDATA[
now it seems to work!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br><br>but ... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes">  look at that ...<br><br>eggdrop.conf<blockquote class="uncited"><div>..........<br>set strict-host 0<br>set quiet-reject 0<br>set lowercase-ctcp 0<br>..............</div></blockquote>and bot does this<blockquote class="uncited"><div>[10:39] &lt;@Hooligan&gt; cya [place]<br>[10:39]  Mode (@nevykes:#audi -o+b [place] *!*~bazooka@*.vet.lt)<br>[10:39]  [place] was kicked by @nevykes (nevykes)</div></blockquote>maybe i should put one more set strict-host "0" in my tcl script? <br>EDIT: It doesn't help either...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Wed Sep 08, 2004 3:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T23:30:08-04:00</updated>

		<published>2004-09-06T23:30:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40662#p40662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40662#p40662"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40662#p40662"><![CDATA[
Erm.. yeah, use it in a this way then:<br><div class="codebox"><p>Code: </p><pre><code>set strict-host "0"#To trim of the "~" in the ident.</code></pre></div><div class="codebox"><p>Code: </p><pre><code>..........................................................if {($rest == "")} { putserv "NOTICE $Kikintojas :Vartojimas: cya &lt;nikas&gt; (priezhastis)" return 0 } set Kikinamasis [lindex $rest 0]set reas [lrange $rest 1 end]set uhost [getchanhost $Kikinamasis $chan]set banmask "*!*[lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]"if {($uhost == "")} { putserv "NOTICE $Kikintojas :Ko norejai?" 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 Sep 06, 2004 11:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-09-06T22:04:58-04:00</updated>

		<published>2004-09-06T22:04:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40659#p40659</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40659#p40659"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40659#p40659"><![CDATA[
Well, using $uhost in there makes no sense, as thats the person triggering the script and not the victim. Using $host is no good either, as it havent been defined anywhere.<br><br>So just looking at the script briefly, i sugeest that you move that set banmask line further down in your script (to where you actually need it) and then perform a getchanhost on the victim's nick, (set in the Kikinamasis var, as far as I can tell)<br><br>Just a sidenote, you can make the eggdrop strip ~ from idents automaticly by setting strict-host to 0 in your config file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Sep 06, 2004 10:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T21:25:06-04:00</updated>

		<published>2004-09-06T21:25:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40653#p40653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40653#p40653"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40653#p40653"><![CDATA[
Honestly I have no idea why it doesn't work. To me and to all the people there it looks fine, its just a simple code indeed.  <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 Sep 06, 2004 9:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-06T07:55:57-04:00</updated>

		<published>2004-09-06T07:55:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40634#p40634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40634#p40634"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40634#p40634"><![CDATA[
but then script doesnt work at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Mon Sep 06, 2004 7:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T01:06:22-04:00</updated>

		<published>2004-09-06T01:06:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40616#p40616</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40616#p40616"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40616#p40616"><![CDATA[
This has already been discussed and I remade the script quite alot of times in one of the threads in the eggdrop forum. <br><br>Here is the link:<br><a href="http://forum.egghelp.org/viewtopic.php?t=8147" class="postlink">http://forum.egghelp.org/viewtopic.php?t=8147</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 06, 2004 1:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[esix]]></name></author>
		<updated>2004-09-05T15:55:48-04:00</updated>

		<published>2004-09-05T15:55:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40602#p40602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40602#p40602"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40602#p40602"><![CDATA[
i think if you change<br><div class="codebox"><p>Code: </p><pre><code>set banmask *!*[string trimleft [lindex [split $uhost "@"] 0] "~"]@[lindex [split [maskhost $uhost] "@"] 1]</code></pre></div>to<br><div class="codebox"><p>Code: </p><pre><code>set banmask *!*[string trimleft [lindex [split $host "@"] 0] "~"]@[lindex [split [maskhost $host] "@"] 1]</code></pre></div>it will work right, at least i hope so <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=5311">esix</a> — Sun Sep 05, 2004 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-05T06:21:52-04:00</updated>

		<published>2004-09-05T06:21:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40595#p40595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40595#p40595"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40595#p40595"><![CDATA[
so how to make the script ban not me but the person i want?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Sun Sep 05, 2004 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-05T04:43:04-04:00</updated>

		<published>2004-09-05T04:43:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40594#p40594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40594#p40594"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40594#p40594"><![CDATA[
Its because it bans on your uhost as shown in the code.<br><br>set banmask *!*[string trimleft [lindex [split <strong class="text-strong">$uhost</strong> "@"] 0] "~"]@[lindex [split [maskhost <strong class="text-strong">$uhost</strong>] "@"] 1]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Sep 05, 2004 4:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guest]]></name></author>
		<updated>2004-09-04T13:26:28-04:00</updated>

		<published>2004-09-04T13:26:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40580#p40580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40580#p40580"/>
		<title type="html"><![CDATA[[SOLVED] Request: TCL script correction]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40580#p40580"><![CDATA[
Now my code is like u told me to do it looks like that...<div class="codebox"><p>Code: </p><pre><code>bind pub B|B cya Banytiproc Banyti {Kikintojas uhost hand Kanalas rest} {set banmask *!*[string trimleft [lindex [split $uhost "@"] 0] "~"]@[lindex [split [maskhost $uhost] "@"] 1]if {$rest == ""} {putserv "NOTICE $Kikintojas :Vartojimas: cya &lt;nikas&gt; (priezhastis)"return 0}set Kikinamasis [lindex $rest 0]set reas [lrange $rest 1 end]if {[getchanhost $Kikinamasis $Kanalas] == ""} {putserv "NOTICE $Kikintojas :Ko norejai?"return 0}if {[matchattr $hand m|m $Kanalas]} {putserv "MODE $Kanalas -o+b $Kikinamasis $banmask"putserv "KICK $Kanalas $Kikinamasis :$reas"return 1}if {[matchattr [nick2hand $Kikinamasis $Kanalas] mn|mn $Kanalas] || [matchattr $Kikinamasis b]} {putserv "NOTICE $Kikintojas :suka zhiurek ka darai! "return 0}if {[matchattr $hand o|o $Kanalas]} {putserv "MODE $Kanalas -o+b $Kikinamasis $banmask"putserv "KICK $Kanalas $Kikinamasis :$reas"return 1}}</code></pre></div>but it bans me, instead of person who i want to ban in irc it looks like that :<blockquote class="uncited"><div>Whois Hooligan = Hooligan (<a href="mailto:bnc@shaman.velniai.net">bnc@shaman.velniai.net</a>)<br>Whois savas = savas (<a href="mailto:ubaldas@aitvaras.net">ubaldas@aitvaras.net</a>)<br>&lt;@Hooligan&gt; cya savas<br>Mode (@nevykes:#audi -o+b savas *!*bnc@*.velniai.net)<br>Mode (@savas:#audi +o savas)<br>savas was kicked by @nevykes (nevykes)</div></blockquote>any ideas about that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4435">guest</a> — Sat Sep 04, 2004 1:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
