ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/plugins.c
(Generate patch)

Comparing deliantra/server/server/plugins.c (file contents):
Revision 1.10 by root, Tue Mar 28 16:08:38 2006 UTC vs.
Revision 1.11 by root, Sun Jun 11 15:02:16 2006 UTC

1/* 1/*
2 * static char *rcsid_plugins_c = 2 * static char *rcsid_plugins_c =
3 * "$Id: plugins.c,v 1.10 2006/03/28 16:08:38 root Exp $"; 3 * "$Id: plugins.c,v 1.11 2006/06/11 15:02:16 root Exp $";
4 */ 4 */
5 5
6/*****************************************************************************/ 6/*****************************************************************************/
7/* CrossFire, A Multiplayer game for X-windows */ 7/* CrossFire, A Multiplayer game for X-windows */
8/* */ 8/* */
414 for (cp = plugins_list; cp != NULL; cp = cp->next) { 414 for (cp = plugins_list; cp != NULL; cp = cp->next) {
415 if (cp->gevent[eventcode] != NULL) 415 if (cp->gevent[eventcode] != NULL)
416 cp->gevent[eventcode](&rt, eventcode, op, buf); 416 cp->gevent[eventcode](&rt, eventcode, op, buf);
417 } 417 }
418 break; 418 break;
419
420 case EVENT_EXTCMD:
421 /*KICK: op, parms*/
422 pl = va_arg (args, player *);
423 buf = va_arg (args, char *);
424 i = va_arg (args, int);
425 for (cp = plugins_list; cp != NULL; cp = cp->next) {
426 if (cp->gevent[eventcode] != NULL)
427 cp->gevent[eventcode](&rt, eventcode, pl, buf, i, buf);
428 }
429 break;
419 } 430 }
420 va_end(args); 431 va_end(args);
421 return 0; 432 return 0;
422} 433}
423 434

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines