lynnfaraday / MUSH

MUSH Softcode and Utilities
8 stars 1 forks source link

BBS issue: +bbedit2 fails #57

Closed sceox closed 10 years ago

sceox commented 10 years ago

I still can't see anything wrong with the code for bbedit2 (edit of post in progress) but it didn't work for me. +bbedit text=foo/bar would fail silently, even with the BBS set debug. +bbedit 1/1=foo/bar (edit one of your posted messages) did work.

Changing bbedit2 to use the same routine as bbedit worked for me. Patch:

&CMD_+BBEDIT2 BBS - Myrddin's Global BBS=$+bbedit *=*/*:@switch strmatch([setq(0,ucstr(%0))]%q0,*/*)=0,{@switch %q0=TEXT,{&bb_post_bdy_%# #BBS_POCKET=[edit(get(#BBS_POCKET/bb_post_bdy_%#),{%1},{%2})]},TITLE,{&bb_post_hdr_%# #BBS_POCKET=[index(get(#BBS_POCKET/bb_post_hdr_%#),|,1,1)]|[edit(index(get(#BBS_POCKET/bb_post_hdr_%#),|,2,1),{%1},{%2})]}; @wait 0={@pemit %#=[center(= BB Post in Progress =,78,=)]%rGroup: %b[name(index(get(#BBS_POCKET/bb_post_hdr_%#),|,1,1))]%rTitle: %b[index(get(#BBS_POCKET/bb_post_hdr_%#),|,2,1)]%r[line2()]%r[trim(get(#BBS_POCKET/bb_post_bdy_%#))]%r[line()]}}

I also reported this upstream.

lynnfaraday commented 10 years ago

Patch taken, thanks.