version 1.61 | | version 1.62 |
---|
| | |
/* | | /* |
* static char *rcsid_commands_c = | | * static char *rcsid_commands_c = |
* "$Id: commands.c,v 1.61 2006/05/05 09:26:34 ryo_saeba Exp $"; | | * "$Id: commands.c,v 1.62 2006/06/05 06:28:56 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
Copyright (C) 2002 Mark Wedel & Crossfire Development Team | | Copyright (C) 2006 Mark Wedel & Crossfire Development Team |
Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | |
This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
{"hide", command_hide,0.0}, | | {"hide", command_hide,0.0}, |
{"insert_into", command_insert_into,0.0}, | | {"insert_into", command_insert_into,0.0}, |
{"invisible", command_invisible,0.0}, | | {"invisible", command_invisible,0.0}, |
{"kick", command_kick, 0.0}, | | {"kick", (command_function)command_kick, 0.0}, |
{"learn_special_prayer", command_learn_special_prayer, 0.0}, | | {"learn_special_prayer", command_learn_special_prayer, 0.0}, |
{"learn_spell", command_learn_spell, 0.0}, | | {"learn_spell", command_learn_spell, 0.0}, |
{"plugin",command_loadplugin,0.0}, | | {"plugin",command_loadplugin,0.0}, |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | #if 0 |
| | /* find_command is only used by parse_string, so if parse_string |
| | * isn't needed, neither is find_command. But parse_string |
| | * is only used by parse_command. |
| | * MSW 2006-06-02 |
| | */ |
| | |
static command_function find_command(char *cmd) | | static command_function find_command(char *cmd) |
{ | | { |
command_array_struct *asp, dummy; | | command_array_struct *asp, dummy; |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | /* parse_string is only used by parse_command, so if parse_command |
| | * isn't needed, neither is parse_string |
| | * MSW 2006-06-02 |
| | */ |
| | |
/** | | /** |
* parse_string may be called from a player in the game or from a socket | | * parse_string may be called from a player in the game or from a socket |
| | |
} | | } |
| | |
| | |
| | /* Parse command is no longer used - should probably be removed. |
| | * MSW 2006-06-02 |
| | */ |
| | |
/** this function handles splitting up a ; separated | | /** this function handles splitting up a ; separated |
* compound command into sub-commands: it is recursive. | | * compound command into sub-commands: it is recursive. |
*/ | | */ |
| | |
} | | } |
return 0; | | return 0; |
} | | } |
| | #endif |