Skip to content
Snippets Groups Projects
Commit 36baf973 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix line 260: TypeError: imsg_user[last_user] is undefined

Not sure how Zharvek triggers this error using the module, but he managed to
do it twice, so add a bit of paranoia-check.
parent b83bf879
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,7 @@ while(bbs.online) {
break;
}
done=false;
while(bbs.online && !done && !console.aborted) {
while(bbs.online && !done && !console.aborted && imsg_user[last_user]) {
printf("\1[\1n\1h\x11\1n-[\1hQ\1nuit/\1hA\1nll]-\1h\x10 \1y%-25s \1c%s\1>"
,imsg_user[last_user].name,imsg_user[last_user].bbs);
switch(console.getkey(K_UPPER|K_NOECHO)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment