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

	<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>2003-06-30T18:45:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-30T18:45:17-04:00</updated>

		<published>2003-06-30T18:45:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22774#p22774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22774#p22774"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22774#p22774"><![CDATA[
Hi<br><br>I can't be true that there is nobody who can help me with this script.<br><br>I can see that there is alot of extremly competent users out there.<br><br>Please help me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>sQuiZZ<p>Statistics: Posted by Guest — Mon Jun 30, 2003 6:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-29T10:09:21-04:00</updated>

		<published>2003-06-29T10:09:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22713#p22713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22713#p22713"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22713#p22713"><![CDATA[
Hi<br><br>I am trying to use the script memo1.1.tcl.<br>It starts with no errors.<br><br>I can add users just fine, its a little vierd that i allso can add the same user more than ones and with different password.<br><br>I can send messages with no trouble.<br><br>But i cant get them and i dont get the mesage that should come on join.<br>When i try and get the message i get this message.<br><br>{15|55|01} -|TpE-cs|- You have not setup a mailbox.<br>{15|55|02} -|TpE-cs|- /msg |TpE-cs| !new &lt;password&gt; to setup<br>{15|55|03} -|TpE-cs|-  Invalid password<br><br>Allso how do i make the memo work on one channel only.<br>Allso i would like to make is so, that i can write !get &lt;password and !send &lt;TO&gt; &lt;message&gt; in the channel i think the /msg &lt;botnick&gt; !send &lt;TO&gt; &lt;message&gt; is a little to long.<br><br>Your help is greaty apriciated.<br><br>I have included the intire memo script.<br><br>Thanks<br>Casper<br><div class="codebox"><p>Code: </p><pre><code># MemoScript v1.0#  This script saves memos from user to user#  Onjoin - script checks for messages## Syntax (msg):# !send nick message                 send a message to nick# !get [nickname] password           get messages using [nickname] or current nickname and password# !new password                      new mailbox with password##############set memo_userfile "scripts/memo.userfile"set memo_msgfile "scripts/memo.messages"set memo_botsname "|TpE-cs|"bind join - * eggmemo_checkmsg proc eggmemo_checkmsg {nick host hand channel} {    global memo_msgfile    global memo_botsname    if {[get $nick $memo_msgfile]!=""} {putserv "NOTICE $nick :You have new messages"putserv "NOTICE $nick :/msg $memo_botsname !get &lt;password&gt; to retrieve"    }}bind msgm - "!new*" eggmemo_newproc eggmemo_new {nick host hand text} {    # new mailbox    global memo_userfile    set password [lindex $text 1]    if {$password==""} {putserv "NOTICE $nick : No password given";    } else {if {[get $nick $memo_userfile] == ""} {    add $nick $password $memo_userfile          putserv "NOTICE $nick : Your mailbox has been created"} else {    putserv "NOTICE $nick : Your mailbox already exists"}    }}bind msgm - "!get*" eggmemo_getproc eggmemo_get {nick host hand text} {    # get yer own messages    global memo_msgfile    global memo_userfile    global memo_botsname    set password [lindex $text 2]    set getnick [lindex $text 1]    if {$password == ""} {set password [lindex $text 1]set getnick $nick    }    if {[get $getnick $memo_userfile]==""} {putserv "NOTICE $nick :You have not setup a mailbox."putserv "NOTICE $nick :/msg $memo_botsname !new &lt;password&gt; to setup"    }    if {[get $getnick $memo_userfile]!=$password} {putserv "NOTICE $nick : Invalid password"    } else {set message [get $getnick $memo_msgfile]if {$message == "" } {    putserv "NOTICE $nick : You have no messages"} else {    putserv "NOTICE $nick : $message"    remove $getnick $memo_msgfile    set message [get $getnick $memo_msgfile]    while {$message != ""} {putserv "NOTICE $nick : $message"remove $getnick $memo_msgfile    }}    }}bind msg - !memohelp eggmemo_helpproc eggmemo_help {nick host hand text} {    global memo_botsname    set dest $nick    putserv "NOTICE $dest :MemoScript by Krystar &lt;yruan4@uic.edu&gt;";    putserv "NOTICE $dest :/msg $memo_botsname !new &lt;password&gt; to setup mailbox under current nickname"    putserv "NOTICE $dest :/msg $memo_botsname !send &lt;recipient&gt; &lt;message&gt; to send a message"    putserv "NOTICE $dest :/msg $memo_botsname !get \133&lt;nickname&gt;\135 &lt;password&gt; to retrieve messages.  optional nickname parameter"}bind msg - !send eggmemo_sendproc eggmemo_send {nick host hand text} {    global memo_msgfile    global memo_userfile    # send a message    set recipient [lindex $text 0]    set message "$nick says: [lrange $text 1 end]"    putserv "NOTICE $nick :Message sent"    putlog "message to $recipient: $message"    add $recipient $message $memo_msgfile}proc add {key value file} {    exec "touch" $file        set fh [open $file a]    puts $fh "$key =&gt; $value"    close $fh}proc get {key file} {    exec "touch" $file    set fh [open $file r]    set returnword {}    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }set breaker [lsearch -exact $stdin "=&gt;"]set getkey [lrange $stdin 0 [expr $breaker - 1]] set getresult [lrange $stdin [expr $breaker + 1] end]if {[string tolower $getkey] == [string tolower $key]} { set returnword $getresult }    }    close $fh    return $returnword}proc remove {word file} {    exec "touch" $file    set fh [open $file r]    set return {}    set del 0    while {![eof $fh]} {set stdin [string trim [gets $fh]]if {[eof $fh]} { break }if {![regexp -nocase $word $stdin]} {    lappend return $stdin} {    incr del 1}    }    close $fh;    set fh [open $file w]    foreach a $return {puts $fh $a    }    close $fh    return $del}</code></pre></div><p>Statistics: Posted by Guest — Sun Jun 29, 2003 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2003-05-03T17:03:52-04:00</updated>

		<published>2003-05-03T17:03:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19779#p19779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19779#p19779"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19779#p19779"><![CDATA[
Hi, i am using memo1.1, but i get this error<br>[02:00] Writing user file...<br>[02:00] Writing channel file...<br>[02:03] Tcl error [eggmemo_checkmsg]: couldn't create output pipe for command: file table overflow<br>[03:00] Last message repeated 395 time(s). and then bot gets disconnect and don't come back online, and in box i can see the process is running.<br>codes:<br>bind join - * eggmemo_checkmsg <br>proc eggmemo_checkmsg {nick host hand channel} {<br>    global memo_msgfile<br>    global memo_botsname<br><br>    if {[get $nick $memo_msgfile]!=""} {<br>putserv "NOTICE $nick :You have new messages"<br>putserv "NOTICE $nick :/msg $memo_botsname !get &lt;password&gt; to retrieve"<br>    }<br>}<br><br>and get procedure is the following<br><br>proc get {key file} {<br>    exec "touch" $file<br><br>    set fh [open $file r]<br>    set returnword {}<br>    while {![eof $fh]} {<br>set stdin [string trim [gets $fh]]<br>if {[eof $fh]} { break }<br>set breaker [lsearch -exact $stdin "=&gt;"]<br>set getkey [lrange $stdin 0 [expr $breaker - 1]] <br>set getresult [lrange $stdin [expr $breaker + 1] end]<br>if {[string tolower $getkey] == [string tolower $key]} { set returnword $getresult }<br>    }<br>    close $fh<br>    return $returnword<br>}<br><br>Thanks a lot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sat May 03, 2003 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2003-04-19T20:08:36-04:00</updated>

		<published>2003-04-19T20:08:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19267#p19267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19267#p19267"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19267#p19267"><![CDATA[
thanks, but i need for all users, memo1.1 is close, but the problem is, everything shows in the partyline and there is no limits for memos and flood protection ...<br><br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sat Apr 19, 2003 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rob]]></name></author>
		<updated>2003-04-19T18:43:01-04:00</updated>

		<published>2003-04-19T18:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19265#p19265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19265#p19265"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19265#p19265"><![CDATA[
There are 2 in the tcl archive...<br><br><a href="http://www.egghelp.org/files/tcl/memo.zip" class="postlink">http://www.egghelp.org/files/tcl/memo.zip</a><br><a href="http://www.egghelp.org/files/tcl/memo1.1.zip" class="postlink">http://www.egghelp.org/files/tcl/memo1.1.zip</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1673">Rob</a> — Sat Apr 19, 2003 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[EEggy]]></name></author>
		<updated>2003-04-19T17:03:18-04:00</updated>

		<published>2003-04-19T17:03:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19262#p19262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19262#p19262"/>
		<title type="html"><![CDATA[memo tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19262#p19262"><![CDATA[
Hi, does any one know working memo tcl for all users??<br><br><br>advance thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1962">EEggy</a> — Sat Apr 19, 2003 5:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
