version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
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; |
| | |
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 |
| | |
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", |
| | |
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 |