Difference for server/commands.c from version 1.16 to 1.17


version 1.16 version 1.17
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_commands_c =   * static char *rcsid_commands_c =
  *   "$Id: commands.c,v 1.16 2001/10/30 02:30:20 michtoen Exp $";   *   "$Id: commands.c,v 1.17 2001/11/11 09:39:54 gros Exp $";
  */   */
   
 /*  /*
Line 343
 
Line 343
     if (asp)      if (asp)
       return asp->func;        return asp->func;
     else      else
     {  
     /* GROS - If we are here, then maybe this is a plugin-provided command ? */  
       asp = find_plugin_command(cmd);  
       if (asp)  
         return asp->func;  
       else  
         return NULL;          return NULL;
     };      };
   };  
 }  }
   
 static CommFunc find_wizcommand(char *cmd)  static CommFunc find_wizcommand(char *cmd)
Line 383
 
Line 376
 {  {
     CommFunc f;      CommFunc f;
     char *cp;      char *cp;
       CommArray_s *asp;
   
 #ifdef INPUT_DEBUG  #ifdef INPUT_DEBUG
     LOG(llevDebug, "Command: '%s'\n", str);      LOG(llevDebug, "Command: '%s'\n", str);
Line 392
 
Line 386
      * No arguments?       * No arguments?
      */       */
     if (!(cp=strchr(str, ' '))) {      if (!(cp=strchr(str, ' '))) {
    /* GROS - If we are here, then maybe this is a plugin-provided command ? */
    asp = find_plugin_command(str, op);
    if (asp)
        return asp->func(op, NULL);
   
  if ((f=find_command(str)))   if ((f=find_command(str)))
      return f(op, NULL);       return f(op, NULL);
  if (QUERY_FLAG(op,FLAG_WIZ) && (f=find_wizcommand(str)))   if (QUERY_FLAG(op,FLAG_WIZ) && (f=find_wizcommand(str)))
Line 411
 
Line 410
     /* Clear all spaces from the start of the optional argument */      /* Clear all spaces from the start of the optional argument */
     while (*cp==' ') cp++;      while (*cp==' ') cp++;
   
       asp = find_plugin_command(str,op);
       if (asp) return asp->func(op,cp);
   
     if ((f=find_command(str)))      if ((f=find_command(str)))
  return f(op, cp);   return f(op, cp);
     if (QUERY_FLAG(op, FLAG_WIZ) && (f=find_wizcommand(str)))      if (QUERY_FLAG(op, FLAG_WIZ) && (f=find_wizcommand(str)))


Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17

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