Difference for server/commands.c from version 1.52 to 1.53


version 1.52 version 1.53
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_commands_c =   * static char *rcsid_commands_c =
  *   "$Id: commands.c,v 1.52 2005/08/11 16:44:30 cavesomething Exp $";   *   "$Id: commands.c,v 1.53 2005/09/04 16:58:12 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 362
 
Line 362
   asp =(CommArray_s *)bsearch((void *)&dummy,    asp =(CommArray_s *)bsearch((void *)&dummy,
        (void *)Commands, CommandsSize,         (void *)Commands, CommandsSize,
        sizeof(CommArray_s), compare_A);         sizeof(CommArray_s), compare_A);
   printf("Getting asp for command string %s\n", cmd);    LOG(llevDebug, "Getting asp for command string %s\n", cmd);
   if (asp)    if (asp)
     return asp->func;      return asp->func;
   else    else
   {    {
     printf("Now we are here\n");      LOG(llevDebug, "Now we are here\n");
     asp =(CommArray_s *)bsearch((void *)&dummy,      asp =(CommArray_s *)bsearch((void *)&dummy,
       (void *)CommunicationCommands, CommunicationCommandSize,        (void *)CommunicationCommands, CommunicationCommandSize,
       sizeof(CommArray_s), compare_A);        sizeof(CommArray_s), compare_A);
Line 471
 
Line 471
   int i;    int i;
   /* if it's a keybinding command, ignore semicolons */    /* if it's a keybinding command, ignore semicolons */
   if(strstr(str,"bind")) return parse_string(op,str);    if(strstr(str,"bind")) return parse_string(op,str);
 printf("parsin command '%s'\n",str);    LOG(llevDebug, "parsin command '%s'\n", str);
   /* If on a socket, you can not do complex commands. */    /* If on a socket, you can not do complex commands. */
   if(op && (tmp=strchr(str,';'))!=NULL)  /* we've found a ';' do the 1st and recurse */    if(op && (tmp=strchr(str,';'))!=NULL)  /* we've found a ';' do the 1st and recurse */
  {   {


Legend:
line(s) removed in v.1.52 
line(s) changed
 line(s) added in v.1.53

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