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

	<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>2005-05-04T03:39:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-05-03T22:21:54-04:00</updated>

		<published>2005-05-03T22:21:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48967#p48967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48967#p48967"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48967#p48967"><![CDATA[
Thanks De Kus.<br><br>[04:10] Tcl error [banfilter]: invalid command name "replace"<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Tue May 03, 2005 10:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-04T03:39:12-04:00</updated>

		<published>2005-05-02T15:19:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48904#p48904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48904#p48904"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48904#p48904"><![CDATA[
without any warranty <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><div class="codebox"><p>Code: </p><pre><code>bind filt - ".+ban *" banfilterproc banfilter {idx text} {   set text [split $text]   set chan [lindex $text [set ci [lsearch -glob [lrange $text 0 4] #*]]]   set reason [lreplace $text $ci $ci]   set dur [lindex $reason [set di [lsearch -glob [lrange $reason 0 3] \%*]]]   set reason [lreplace $reason $di $di]   if { [set reason [lrange $reason 2 end]] == "" } {      set reason "requested"   }   set reason "kicked by [idx2hand $idx] ([ctime [unixtime]]: $reason)"   return [join [list .+ban $chan $dur $reason]]}</code></pre></div>I am sure I hid some typos or stupid logical errors, but maybe you find them yourself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>One note:<br>I assumed lreplace behaves like that:<blockquote class="uncited"><div>tcl: evaluate (.tcl): lreplace {1 2} -1 -1<br>Tcl: 1 2</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 02, 2005 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-05-01T15:45:48-04:00</updated>

		<published>2005-05-01T15:45:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48833#p48833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48833#p48833"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48833#p48833"><![CDATA[
could you please?<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sun May 01, 2005 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-01T12:44:02-04:00</updated>

		<published>2005-05-01T12:44:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48824#p48824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48824#p48824"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48824#p48824"><![CDATA[
the reason thing would require some enhancement anyway, if you really need it, I might change the whole thing (currently probably only 1 list element reasons will work).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun May 01, 2005 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-30T16:46:56-04:00</updated>

		<published>2005-04-30T16:46:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48790#p48790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48790#p48790"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48790#p48790"><![CDATA[
Thank you so much De Kus, works great..<br>just one last thing, if i don't mention "reason" then it leaves it blank, doesn't put "requested"<br><br><br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Apr 30, 2005 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-30T03:20:53-04:00</updated>

		<published>2005-04-30T03:20:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48729#p48729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48729#p48729"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48729#p48729"><![CDATA[
then read again what I said and look again what you did.<br><br>Tip: you removed the " quotes around the expression after reason<br>Tip2: Last edited by De Kus on Fri Apr 29, 2005 8:29 am; edited 2 times in total<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sat Apr 30, 2005 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-29T21:15:22-04:00</updated>

		<published>2005-04-29T21:15:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48720#p48720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48720#p48720"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48720#p48720"><![CDATA[
Thanks but if i remove these quotes<div class="codebox"><p>Code: </p><pre><code>set reason "kicked by [idx2hand $idx] ([ctime [unixtime]]: $reason)" </code></pre></div>then i get error message<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Fri Apr 29, 2005 9:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-29T03:25:34-04:00</updated>

		<published>2005-04-29T03:25:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48685#p48685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48685#p48685"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48685#p48685"><![CDATA[
I told you to refer the manual to customize the date/time format &gt;&lt;<br><br>that quotes is strange, you could of course try to remove the quotes around $reason, seems they are not neccesarry in the party line command.<br><br>Tip: this strange in your head can be used to think, you don't need others to relay on for everything.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Apr 29, 2005 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-28T22:03:32-04:00</updated>

		<published>2005-04-28T22:03:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48680#p48680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48680#p48680"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48680#p48680"><![CDATA[
thank you De Kus, it worked fine. the kick message shows like this<br>was kicked by testbot("kicked by mm (date, time: reason)", how do i remove these quotes?<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Thu Apr 28, 2005 10:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-27T23:10:09-04:00</updated>

		<published>2005-04-27T23:10:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48637#p48637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48637#p48637"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48637#p48637"><![CDATA[
Thanks De kus, i'll let you know.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Wed Apr 27, 2005 11:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-27T04:02:33-04:00</updated>

		<published>2005-04-27T04:02:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48611#p48611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48611#p48611"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48611#p48611"><![CDATA[
maybe your TCL version doesnt support the shortcut of "end", try using "end" instead of "e" (dont forget the one in lrange then). I tested it locally and there it works ^-^.<blockquote class="uncited"><div>[09:02:03] tcl: evaluate (.tcl): lindex {one two three} e<br>Tcl: three</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 27, 2005 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-26T21:06:01-04:00</updated>

		<published>2005-04-26T21:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48601#p48601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48601#p48601"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48601#p48601"><![CDATA[
well now i get this error<br>[02:28] Tcl error [banfilter]: wrong # args: should be "lindex list ?index...?"<br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Tue Apr 26, 2005 9:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-26T14:24:16-04:00</updated>

		<published>2005-04-26T14:24:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48589#p48589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48589#p48589"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48589#p48589"><![CDATA[
<blockquote class="uncited"><div>[03:20] Tcl error [banfilter]: extra characters after close-quote</div></blockquote>there were a redudant ] bracet and one was not moved correctly when I edited some part (after I noticed, that join kills "" quotes).<br><br>at least it seems to trigger correctly?!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Apr 26, 2005 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-04-25T18:41:55-04:00</updated>

		<published>2005-04-25T18:41:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48548#p48548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48548#p48548"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48548#p48548"><![CDATA[
thank you so much de kus, i'll test it and i'll let you know. Thanks again.<br><br>sorry i get this error message in the partyline<br>[03:20] Tcl error [banfilter]: extra characters after close-quote<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Mon Apr 25, 2005 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-04-29T03:29:35-04:00</updated>

		<published>2005-04-25T09:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48538#p48538</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48538#p48538"/>
		<title type="html"><![CDATA[how to change?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48538#p48538"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind filt - ".+ban *" banfilterproc banfilter {idx text} {   set text [split $text]   if { [string match #* [lindex $text end]] || [string match \%* [lindex $text end]] || [llength $text] == 2 } {      set reason "requested"      set default 1   } else {      set reason [string trim [lindex $text end] "\""]      set default 0   }   set reason "kicked by [idx2hand $idx] ([ctime [unixtime]]: $reason)"   if {$default} {      return "[join [lrange $text 0 end]] $reason"   } else {      return "[join [lrange $text 0 end-1]] $reason"   }}</code></pre></div>I meant something like this. Untested, don't know if it works. maybe you may not split $text, maybe it doesnt trigger when it is supposed to, maybe the bot won't recognize the list elements for +ban right in the end.<br><br>the reason change the banreason to something like this, too of course:<br>append reason " (kicked by [idx2hand $idx] on [ctime [unixtime]])"<br><br>if you want to change the date format, replace ctime with strftime, refer TCL-Commands.doc and/or <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm#M6" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm#M6</a> for details.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Apr 25, 2005 9:41 am</p><hr />
]]></content>
	</entry>
	</feed>
