Branch: Tag:

1997-10-24

1997-10-24 20:26:03 by Fredrik Noring <noring@nocrew.org>

This wizkid can perform High Sorcery again!

Rev: server/base_server/wizard.pike:1.40

1: - /* $Id: wizard.pike,v 1.39 1997/10/24 20:10:33 noring Exp $ + /* $Id: wizard.pike,v 1.40 1997/10/24 20:26:03 noring Exp $    * name="Wizard generator";    * doc="This plugin generats all the nice wizards";    */
366:       if(!id->variables->action)    { -  catch { +  mixed wizbug; +  wizbug = catch {    mapping acts = get_actions(base, dir, args);    string res;    res= ("<table cellpadding=3><tr><td valign=top bgcolor=#eeeeee>"+
376:    (id->variables->sm||"Misc")+"</font><dl>":"<dl>")+    (sort(acts[id->variables->sm]||({}))*"\n")+    "</dl></td></tr></table>"+ -  (strlen(err)?"<pre>"+err+"</pre>":"")); +  (err && strlen(err)?"<pre>"+err+"</pre>":""));    err="";    return res;    }; -  +  if(wizbug) +  err = describe_backtrace(wizbug);    if(err && strlen(err)) {    string res="<pre>"+err+"</pre>";    err="";    return res;    } -  } +  } else {    object o = get_wizard(id->variables->action,dir);    if(!o) {    mixed res = "<pre>"+err+"</pre>";
396:    err="";    return res;   } +  return "<pre>The Wizard is confused.</pre>"; + }      /*** Additional Action Functions ***/