Re: Possible bug with bbs.post_msg()ã By: Nightfox to Digital Man on Fri Oct 07 2011 11:44 pmãã > Subject: Possible bug with bbs.post_msg()ã > @VIA: DIGDISTã > @MSGID: <
4E8FF139.1151.sync_js@digitaldistortionbbs.com>ã > @TZ: c1e0ã > Hi DM -ã > ã > I think I may have found a bug with the bbs object's post_msg() method. If ã > pass in a reply header whose "from" property is a blank string, sbbsctrl wilã > crash. I found this in a script I have that lists messages in a sub-board aã > allows the user to select one to read and optionally reply to it. I'm usingã > the daily build from September 20.ã > ã > There's a message that was posted in the Synchronet Discussion sub on Dove-Nã > today (October 7) that has a blank "from" name. My script gets a messageã > header from MsgBase.get_msg_header(), and in this case, it's "from" name wasã > blank; if I select to reply to the message, my script then passes that messaã > header object to bbs.post_msg() (as the 3rd parameter), and at that point, mã > sbbsctrl would crash. I tried it several times to verify the crash and wasã > able to reproduce it each time.ã > ã > My workaround was to make sure the "from" name in the header is set toã > something if it's blank - I set it to "All" in that case. Then, when I passã > the header object to bbs.post_msg(), "All" becomes the default "To" name forã > my reply, and sbbsctrl doesn't crash.ã > ã > Nightfoxã > ããeven I work with java. err and pizza.ãã"Practise safe Lunch, Use a Condiment"ããã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã