version 1.8 | | version 1.9 |
---|
| | |
/* | | /* |
* static char *rcsid_c_party_c = | | * static char *rcsid_c_party_c = |
* "$Id: c_party.c,v 1.8 2004/10/21 16:52:50 ryo_saeba Exp $"; | | * "$Id: c_party.c,v 1.9 2004/12/10 09:16:02 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
new_draw_info(NDI_UNIQUE, 0,op,"If the party has a passwd, it will you prompt you for it."); | | new_draw_info(NDI_UNIQUE, 0,op,"If the party has a passwd, it will you prompt you for it."); |
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 8 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 |
new_draw_info(NDI_UNIQUE, 0,op,"To see what you've killed, type: party kills"); | | new_draw_info(NDI_UNIQUE, 0,op,"To see what you've killed, type: party kills"); |
| | #endif |
return 1; | | return 1; |
} | | } |
#ifdef PARTY_KILL_LOG | | #ifdef PARTY_KILL_LOG |
| | |
return 1; | | return 1; |
} | | } |
| | |
| | if(strlen(params) > 8) { |
| | new_draw_info(NDI_UNIQUE, 0,op,"The password must not exceed 8 characters"); |
| | return 1; |
| | } |
| | |
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,8); | | strcpy(tmplist->passwd,params); |
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", |
| | |
} /* join */ | | } /* join */ |
| | |
new_draw_info(NDI_UNIQUE, 0,op,"To form a party type: party form <partyname>"); | | new_draw_info(NDI_UNIQUE, 0,op,"To form a party type: party form <partyname>"); |
| | new_draw_info(NDI_UNIQUE, 0,op,"To join a party type: party join <partyname>"); |
new_draw_info(NDI_UNIQUE, 0,op,"If the party has a passwd, it will you prompt you for it."); | | new_draw_info(NDI_UNIQUE, 0,op,"If the party has a passwd, it will you prompt you for it."); |
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,"There is an 8 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 |
| | new_draw_info(NDI_UNIQUE, 0,op,"To see what you've killed, type: party kills"); |
| | #endif |
return 1; | | return 1; |
} | | } |
| | |