Difference for server/c_wiz.c from version 1.64 to 1.65


version 1.64 version 1.65
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_wiz_c =   * static char *rcsid_c_wiz_c =
  *   "$Id: c_wiz.c,v 1.64 2005/07/17 11:22:51 akirschbaum Exp $";   *   "$Id: c_wiz.c,v 1.65 2005/07/18 19:07:06 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 1450
 
Line 1450
 {  {
     char buf[MAX_BUF];      char buf[MAX_BUF];
   
       if (params == NULL) {
    new_draw_info(NDI_UNIQUE, 0, op, "Load which plugin?");
    return 1;
       }
   
     strcpy(buf,LIBDIR);      strcpy(buf,LIBDIR);
     strcat(buf,"/plugins/");      strcat(buf,"/plugins/");
     strcat(buf,params);      strcat(buf,params);
     printf("Requested plugin file is %s\n", buf);      printf("Requested plugin file is %s\n", buf);
     initOnePlugin(buf);      if (initOnePlugin(buf) == 0)
           new_draw_info(NDI_UNIQUE, 0, op, "Plugin successfully loaded.");
       else
           new_draw_info(NDI_UNIQUE, 0, op, "Could not load plugin.");
     return 1;      return 1;
 }  }
 /* GROS */  /* GROS */
Line 1463
 
Line 1471
 /* are not loaded.                                                           */  /* are not loaded.                                                           */
 int command_unloadplugin(object *op, char *params)  int command_unloadplugin(object *op, char *params)
 {  {
     removeOnePlugin(params);      if (params == NULL) {
    new_draw_info(NDI_UNIQUE, 0, op, "Remove which plugin?");
    return 1;
       }
   
       if (removeOnePlugin(params) == 0)
           new_draw_info(NDI_UNIQUE, 0, op, "Plugin successfully removed.");
       else
           new_draw_info(NDI_UNIQUE, 0, op, "Could not remove plugin.");
     return 1;      return 1;
 }  }
   


Legend:
line(s) removed in v.1.64 
line(s) changed
 line(s) added in v.1.65

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:29