This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Can't get MemoScript to work.

General support and discussion of Eggdrop bots.
Post Reply
B
Bernd
Voice
Posts: 3
Joined: Fri Nov 13, 2009 2:34 pm

Can't get MemoScript to work.

Post by Bernd »

I tried setting up MemoScript, but I'm always getting this error, if i try to create a mailbox, it just says "Tcl error [eggmemo_new]: couldn't create error file for command: no such file or directory". Same when someone joins, but with "eggmemo_checkmsg" insted of "eggmemo_new". I looked up my scripts dir and created the wanted files(memo.userfile and memo.messages) but it still won't work. Oh, and I'm using Windrop on XP.

eggmemo_new is:

Code: Select all

proc eggmemo_new {nick host hand text} {
    # new mailbox
    global memo_userfile

    set password [lindex $text 1]
    if {$password==""} {
	putserv "NOTICE $nick : Kein Passwort eingegeben";
    } else {
	if {[get $nick $memo_userfile] == ""} {
	    add $nick $password $memo_userfile
	} else {
	    putserv "NOTICE $nick : Deine Mailbox existiert bereits."
	}
    }
}
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Short story, tcl is unable to create the proper environment for running an external application using the exec command. The shortfix is to alter the commandline to redirect the stderr channel to the stdout channel (using "2>@1" as the last option on the command line).

You could also see this thread with a similar issue.
NML_375
Post Reply