Difference for server/c_party.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_party_c =   * static char *rcsid_c_party_c =
  *   "$Id: c_party.c,v 1.10 2004/12/25 18:09:29 ryo_saeba Exp $";   *   "$Id: c_party.c,v 1.11 2005/07/15 23:23:07 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 121
 
Line 121
   tmppartylist = firstparty;    tmppartylist = firstparty;
   while(tmppartylist != NULL) {    while(tmppartylist != NULL) {
     if(op->contr->party_number_to_join == tmppartylist->partyid) {      if(op->contr->party_number_to_join == tmppartylist->partyid) {
         if(strncmp(op->contr->write_buf+1,tmppartylist->passwd, 7) == 0)          if(strcmp(op->contr->write_buf+1,tmppartylist->passwd) == 0)
           return 0;            return 0;
         else          else
           return 1;            return 1;
Line 199
 
Line 199
     new_draw_info(NDI_UNIQUE, 0,op,"For a list of current parties type: party list");      new_draw_info(NDI_UNIQUE, 0,op,"For a list of current parties type: party list");
     new_draw_info(NDI_UNIQUE, 0,op,"To leave a party type: party leave");      new_draw_info(NDI_UNIQUE, 0,op,"To leave a party type: party leave");
     new_draw_info(NDI_UNIQUE, 0,op,"To change a passwd for a party type: party passwd <password>");      new_draw_info(NDI_UNIQUE, 0,op,"To change a passwd for a party type: party passwd <password>");
     new_draw_info(NDI_UNIQUE, 0,op,"There is an 7 character max");      new_draw_info(NDI_UNIQUE, 0,op,"There is an 8 character max");
     new_draw_info(NDI_UNIQUE, 0,op,"To talk to party members type: party say <msg>");      new_draw_info(NDI_UNIQUE, 0,op,"To talk to party members type: party say <msg>");
     new_draw_info(NDI_UNIQUE, 0,op,"To see who is in your party: party who");      new_draw_info(NDI_UNIQUE, 0,op,"To see who is in your party: party who");
 #ifdef PARTY_KILL_LOG  #ifdef PARTY_KILL_LOG
Line 367
 
Line 367
     tmplist = firstparty;      tmplist = firstparty;
     while(tmplist != NULL) {      while(tmplist != NULL) {
       if(tmplist->partyid == op->contr->party_number) {        if(tmplist->partyid == op->contr->party_number) {
         strncpy(tmplist->passwd,params,7);          strcpy(tmplist->passwd,params);
         tmplist->passwd[7] = '\0';  
      new_draw_info_format(NDI_UNIQUE, 0, op,       new_draw_info_format(NDI_UNIQUE, 0, op,
      "The password for party %s is %s", tmplist->partyname,tmplist->passwd);       "The password for party %s is %s", tmplist->partyname,tmplist->passwd);
         snprintf( buf, MAX_BUF, "Password for party %s is now %s, changed by %s",          snprintf( buf, MAX_BUF, "Password for party %s is now %s, changed by %s",
Line 483
 
Line 482
   new_draw_info(NDI_UNIQUE, 0,op,"For a list of current parties type: party list");    new_draw_info(NDI_UNIQUE, 0,op,"For a list of current parties type: party list");
   new_draw_info(NDI_UNIQUE, 0,op,"To leave a party type: party leave");    new_draw_info(NDI_UNIQUE, 0,op,"To leave a party type: party leave");
   new_draw_info(NDI_UNIQUE, 0,op,"To change a passwd for a party type: party passwd <password>");    new_draw_info(NDI_UNIQUE, 0,op,"To change a passwd for a party type: party passwd <password>");
   new_draw_info(NDI_UNIQUE, 0,op,"There is an 7 character max");    new_draw_info(NDI_UNIQUE, 0,op,"There is an 8 character max");
   new_draw_info(NDI_UNIQUE, 0,op,"To talk to party members type: party say <msg>");    new_draw_info(NDI_UNIQUE, 0,op,"To talk to party members type: party say <msg>");
   new_draw_info(NDI_UNIQUE, 0,op,"To see who is in your party: party who");    new_draw_info(NDI_UNIQUE, 0,op,"To see who is in your party: party who");
 #ifdef PARTY_KILL_LOG  #ifdef PARTY_KILL_LOG


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

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