version 1.9 | | version 1.10 |
---|
| | |
/* | | /* |
* static char *rcsid_c_chat_c = | | * static char *rcsid_c_chat_c = |
* "$Id: c_chat.c,v 1.9 2002/10/17 07:15:39 mwedel Exp $"; | | * "$Id: c_chat.c,v 1.10 2002/11/26 08:48:20 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
int command_shout (object *op, char *params) | | int command_shout (object *op, char *params) |
{ | | { |
#ifdef PLUGINS | | |
int evtid; | | int evtid; |
CFParm CFP; | | CFParm CFP; |
#endif | | |
if (params == NULL) { | | if (params == NULL) { |
new_draw_info(NDI_UNIQUE, 0,op,"Shout what?"); | | new_draw_info(NDI_UNIQUE, 0,op,"Shout what?"); |
return 1; | | return 1; |
} | | } |
new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 1, NULL, | | new_draw_info_format(NDI_UNIQUE | NDI_ALL | NDI_RED, 1, NULL, |
"%s shouts: %s", op->name, params); | | "%s shouts: %s", op->name, params); |
#ifdef PLUGINS | | |
/* GROS : Here we handle the SHOUT global event */ | | /* GROS : Here we handle the SHOUT global event */ |
evtid = EVENT_SHOUT; | | evtid = EVENT_SHOUT; |
CFP.Value[0] = (void *)(&evtid); | | CFP.Value[0] = (void *)(&evtid); |
CFP.Value[1] = (void *)(op); | | CFP.Value[1] = (void *)(op); |
CFP.Value[2] = (void *)(params); | | CFP.Value[2] = (void *)(params); |
GlobalEvent(&CFP); | | GlobalEvent(&CFP); |
#endif | | |
return 1; | | return 1; |
} | | } |
| | |