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

	<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>2006-06-28T14:31:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-06-28T14:31:03-04:00</updated>

		<published>2006-06-28T14:31:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64403#p64403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64403#p64403"/>
		<title type="html"><![CDATA[Who can make this easier?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64403#p64403"><![CDATA[
This way it is easier.<div class="codebox"><p>Code: </p><pre><code>bind pubm - * reset:flagproc reset:flag {nick uhost hand chan arg} {  set reset [lrange [split $arg] 0 2]  set fd [open $::flagfile r+]  set case 0  if {[string match -nocase {text 1} $reset] || [string match -nocase {text 2} $reset]} {set case 1}  if {[string match -nocase {text 8} $reset] || [string match -nocase {text 9} $reset]} {set case 2}  if {$case == 1 || $case ==2} {      while {![eof $fd]} {         lappend list [gets $fd]      }      if {$case == 1} {set list [lreplace $list 0 0 [list 3 3]]}      if {$case == 2} {set list [lreplace $list 0 0 [list 5 5]]}         seek $fd 0         puts -nonewline $fd [join $list \n]         close $fd        return 0   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Wed Jun 28, 2006 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-06-27T07:20:27-04:00</updated>

		<published>2006-06-27T07:20:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64350#p64350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64350#p64350"/>
		<title type="html"><![CDATA[Who can make this easier?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64350#p64350"><![CDATA[
Is it too complex?<br>Look, this part<div class="codebox"><p>Code: </p><pre><code>bind pubm - * reset:flag      while {![eof $fd]} {         lappend list [gets $fd]      }      set list [lreplace $list 0 0 [list 3 3]]     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd     return 0     } </code></pre></div>is repeated 2 more times. Only the if-query is different. And now my question is whether I really must repeat the following part after each if-query.<div class="codebox"><p>Code: </p><pre><code>      while {![eof $fd]} {         lappend list [gets $fd]      }      set list [lreplace $list 0 0 [list 3 3]]     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd     return 0 </code></pre></div>Only this line is different after the if-queries: "set list [lreplace $list 0 0 <ul><li>] "</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Tue Jun 27, 2006 7:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-06-25T12:15:51-04:00</updated>

		<published>2006-06-25T12:15:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64310#p64310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64310#p64310"/>
		<title type="html"><![CDATA[Who can make this easier?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64310#p64310"><![CDATA[
Hello!<br>I made a script very circumstantially I think. There are definitely several lines which are unnecessary. Maybe somebody can make this more easier for me:<div class="codebox"><p>Code: </p><pre><code>bind pubm - * reset:flagproc reset:flag {nick uhost hand chan arg} {  set reset [lrange [split $arg] 0 2]  set reset [stripcodes bcruag $reset]  set fd [open $::flagfile r+]  if {[string match -nocase {text 1} $reset] || [string match -nocase {text 2} $reset]} {      while {![eof $fd]} {         lappend list [gets $fd]      }      set list [lreplace $list 0 0 [list 3 3]]     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd     return 0     }  if {[string match -nocase {text 3} $reset] || [string match -nocase {text 4} $reset] || [string match -nocase {text 5} $reset] || [string match -nocase {text 6} $reset] || [string match -nocase {text 7} $reset]} {      while {![eof $fd]} {         lappend list [gets $fd]      }      set list [lreplace $list 0 0 [list 4 4]]     seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd     return 0     }  if {[string match -nocase {text 8} $reset] || [string match -nocase {text 9} $reset]} {      while {![eof $fd]} {         lappend list [gets $fd]      }      set list [lreplace $list 0 0 [list 5 5]]          seek $fd 0     puts -nonewline $fd [join $list \n]     close $fd     return 0     } }</code></pre></div>This script opens a textfile and change two numbers. But it should only change something if there are special texts written in the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jun 25, 2006 12:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
