13 May, 2011, jurdendurden wrote in the 1st comment:
Votes: 0
At some point my note system stopped saving the recipients for any notes at all. My note system is based on Erwin's board system, but I've updated it to a sort of OLC editor (NEDIT is what I called it). Going into the shell and manually adding the recipients, then rebooting, makes the notes show up on the board just fine, and I've checked over the code but all seems well…. here are the corresponding code chunks… If anyone else can see something I'm missing I'd love to hear it :)
NEDIT ( nedit_to ) { if (!argument) { SEND("You must specify a recipient!\r\n",ch); return FALSE; } if (!ch->pcdata->in_progress) { SEND("Start a new note first!\r\n",ch); return FALSE; }
smash_tilde (argument); /* change ~ to - as we save this field as a string later */ ch->pcdata->in_progress->to_list = str_dup (argument); SEND ("Recipient set.\r\n",ch); return TRUE;
13 May, 2011, jurdendurden wrote in the 2nd comment:
Votes: 0
Update:
Turns out it's just stripping the first part of the recipient. So… if I type… note to all all, it will send it to all, but the first all will be stripped. Any ideas on this?
If the problem is with the recipient, then it'll likely have something to do with to_list. You'll have to look there, or post the code that handles it.
16 May, 2011, jurdendurden wrote in the 5th comment:
Votes: 0
Figured it out thanks for the input guys. Just for future reference… In the nedit function the game tries to dispatch an nedit command based on input, and splits up your input into command, arg1, and arg2. Arg2 would be the correct one for the recipient (note, to, all Figured it out thanks for the input guys. Just for future reference… In the nedit function the game tries to dispatch an nedit command based on input, and splits up your input into command, arg1, and arg2. Arg2 would be the correct one for the recipient (note, to, all [command, arg1, arg2), but I was using arg1. All better now thanks guys!