version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_c_chat_c = | | * static char *rcsid_c_chat_c = |
* "$Id: c_chat.c,v 1.19 2004/12/25 18:09:29 ryo_saeba Exp $"; | | * "$Id: c_chat.c,v 1.20 2005/10/18 16:54:31 gros Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
static int command_tell_all(object *op, char *params, int pri, int color, char *desc) | | static int command_tell_all(object *op, char *params, int pri, int color, char *desc) |
{ | | { |
int evtid; | | |
CFParm CFP; | | |
| | |
if (op->contr->no_shout == 1){ | | if (op->contr->no_shout == 1){ |
new_draw_info(NDI_UNIQUE, 0,op,"You are no longer allowed to shout or chat."); | | new_draw_info(NDI_UNIQUE, 0,op,"You are no longer allowed to shout or chat."); |
return 1; | | return 1; |
| | |
new_draw_info_format(NDI_UNIQUE | NDI_ALL | color, pri, NULL, | | new_draw_info_format(NDI_UNIQUE | NDI_ALL | color, pri, NULL, |
"%s %s: %s", op->name, desc, params); | | "%s %s: %s", op->name, desc, params); |
| | |
/* GROS : Here we handle the SHOUT global event */ | | /* Lauwenmark : Here we handle the SHOUT global event */ |
evtid = EVENT_SHOUT; | | execute_global_event(EVENT_SHOUT,op,params,pri); |
CFP.Value[0] = (void *)(&evtid); | | |
CFP.Value[1] = (void *)(op); | | |
CFP.Value[2] = (void *)(params); | | |
/* Pass in priority - not sure if the plugin can use it or not */ | | |
CFP.Value[3] = (void *)(&pri); | | |
GlobalEvent(&CFP); | | |
return 1; | | return 1; |
} | | } |
} | | } |