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

	<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-10-02T08:35:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kris]]></name></author>
		<updated>2006-10-02T00:47:57-04:00</updated>

		<published>2006-10-02T00:47:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66859#p66859</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66859#p66859"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66859#p66859"><![CDATA[
the bot sets files as <br><br>nick1<br>nick2 <br><br>now, and i want it to remove nick1 &amp; nick2, so ill read that site<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8180">kris</a> — Mon Oct 02, 2006 12:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-10-01T06:52:35-04:00</updated>

		<published>2006-10-01T06:52:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66832#p66832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66832#p66832"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66832#p66832"><![CDATA[
Just go up one level up to <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/contents.htm</a> and read about split and join, I am pretty sure this is what you are looking for, although the way you wrote it, it would be impossible, because if "nick1" and "nick2" are directly concated together without a seperating character like in your example, it would be impossible for the bot to seperate them (unless they are in alphabethical order and are all in another list like online on a channel).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Oct 01, 2006 6:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kris]]></name></author>
		<updated>2006-10-01T05:18:50-04:00</updated>

		<published>2006-10-01T05:18:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66831#p66831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66831#p66831"/>
		<title type="html"><![CDATA[ok..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66831#p66831"><![CDATA[
SO does that website say anything about deleting text from a file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8180">kris</a> — Sun Oct 01, 2006 5:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-09-29T08:57:56-04:00</updated>

		<published>2006-09-29T08:57:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66759#p66759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66759#p66759"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66759#p66759"><![CDATA[
We help those that help themselves.<br><blockquote class="uncited"><div>The error i get is: [14:41] Tcl error [msg_propose]: wrong # args: extra words after "else" clause in "if" command</div></blockquote><em class="text-italics">Read</em> and <span style="text-decoration:underline">learn</span>.<br><br>You were given a link to assist in your education.<br><br>Fix one error before ignoring and trying to sort another (which you have not tried to fix yourself).<br><br>A hint for your second "problem"; ever thought of a carriage return?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Sep 29, 2006 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kris]]></name></author>
		<updated>2006-09-29T05:14:31-04:00</updated>

		<published>2006-09-29T05:14:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66752#p66752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66752#p66752"/>
		<title type="html"><![CDATA[Ergh?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66752#p66752"><![CDATA[
How is that ment to help?, also i need help with another part.<br><div class="codebox"><p>Code: </p><pre><code>bind msg "-|-" !femaleaccept msg_acceptfproc msg_acceptf { nick userhost handle text } {set mrryrole "/home/kris/Love/eggdrop/marriage.role"global msg_acceptf    set stripped  $text    set qot_fd [open $mrryrole a+]    puts $qot_fd $stripped    close $qot_fdputhelp "PRIVMSG #Chapel :$nick has said yes!"puthelp "MODE #chapel -o $nick"return}bind msg "-|-" !maleaccept msg_acceptmproc msg_acceptm { nick userhost handle text } {set mrryrole "/home/kris/Love/eggdrop/marriage.role"global msg_acceptm    set stripped $text    set qot_fd [open $mrryrole a+]    puts $qot_fd $stripped    close $qot_fdputhelp "PRIVMSG #Chapel :$nick has said yes!"puthelp "MODE #chapel -o $nick"return}</code></pre></div>the file goes as <br>nick1nick2<br><br>how do i get it as<br><br>nick1<br>nick2<br><br>any idea's?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8180">kris</a> — Fri Sep 29, 2006 5:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-09-29T03:47:13-04:00</updated>

		<published>2006-09-29T03:47:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66747#p66747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66747#p66747"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66747#p66747"><![CDATA[
Tcl uses the same convention as C regarding conditional expressions.<br><br>example:<div class="codebox"><p>Code: </p><pre><code>if expr1 ?then? body1 elseif expr2 ?then? body2 elseif ... ?else? ?bodyN?</code></pre></div><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/if.htm" class="postlink">if manual page</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Sep 29, 2006 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kris]]></name></author>
		<updated>2006-09-29T01:56:34-04:00</updated>

		<published>2006-09-29T01:56:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66745#p66745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66745#p66745"/>
		<title type="html"><![CDATA[Spelling error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66745#p66745"><![CDATA[
exsists? we fixed that, my admins found it and showed me it.<br><div class="codebox"><p>Code: </p><pre><code>set mrryrole "/home/kris/Love/eggdrop/marriage.role"bind msg "-|-" propose msg_proposeproc msg_propose { nick userhost handle text } {if {![file exists $mrryrole]} {puthelp "NOTICE $nick :Error: #3001 Please email kris0089@gmail.com for more help."return} else {set found 0#set text 0set fs [open $file r]while {![eof $fs]} {gets $fs lineif {$line == $nick} { set found 1 }#if {$line == $text} { set text 1 }}}close $fsif {$found} {puthelp "NOTICE $nick :You are allready married, please join #Chapel to get a divorce."} else {if {$text} {puthelp "NOTICE $Nick :$text is allready married, please both join #Chapel to get a divorce."}} else {puthelp "NOTICE $nick :Congragulations, a Proposal has been sent to $text please wait in #Chapel for a response"puthelp "NOTICE $text :$nick would like you to marry her, to agree type: /msg Love agree $nick to agree, to them and a notice will be sent to them. or type:$"puthelp "PRIVMSG #Chapel :Marriage Proposal has been sent from $nick to $text lets see what they say."}}}</code></pre></div>Thats the whole code..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8180">kris</a> — Fri Sep 29, 2006 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-09-28T10:50:57-04:00</updated>

		<published>2006-09-28T10:50:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66718#p66718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66718#p66718"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66718#p66718"><![CDATA[
there is also a typo in the condition expression.<br><br>PS: if you used proper formating with the <div class="codebox"><p>Code: </p><pre><code>, missing braces would be obvious already while posting.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Sep 28, 2006 10:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[deadite66]]></name></author>
		<updated>2006-09-28T10:46:35-04:00</updated>

		<published>2006-09-28T10:46:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66717#p66717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66717#p66717"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66717#p66717"><![CDATA[
the procedure isn't closed, its missing a curly bracket right at the end.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6296">deadite66</a> — Thu Sep 28, 2006 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kris]]></name></author>
		<updated>2006-10-02T08:35:16-04:00</updated>

		<published>2006-09-28T00:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66706#p66706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66706#p66706"/>
		<title type="html"><![CDATA[[Solved] Love Marriage Command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66706#p66706"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set mrryrole "/home/kris/Love/eggdrop/marriage.role"bind msg "-|-" propose msg_propose proc msg_propose { nick userhost handle text } {if {![file exsits $mrryrole]} { puthelp "NOTICE $nick :Error: #3001 Please email kris0089@gmail.com for more help." return} else {set found 0#set text 0set fs [open $file r]while {![eof $fs]} {gets $fs lineif {$line == $nick} { set found 1 }#if {$line == $text} { set text 1 }}}</code></pre></div>The error i get is: [14:41] Tcl error [msg_propose]: wrong # args: extra words after "else" clause in "if" command<br><br>so any help is greatly appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8180">kris</a> — Thu Sep 28, 2006 12:51 am</p><hr />
]]></content>
	</entry>
	</feed>
