forked from github/server
Befehle im CR richtig ausgeben
This commit is contained in:
parent
850d4704e4
commit
df476c5d7c
|
@ -377,6 +377,18 @@ cr_skill(const void * v, char * buffer, const void * userdata)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
cr_order(const void * v, char * buffer, const void * userdata)
|
||||||
|
{
|
||||||
|
order * ord = (order*)v;
|
||||||
|
if (ord!=NULL) {
|
||||||
|
char * cmd = getcommand(ord);
|
||||||
|
sprintf(buffer, "\"%s\"", cmd);
|
||||||
|
}
|
||||||
|
else strcpy(buffer, "\"\"");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
cr_spell(const void * v, char * buffer, const void * userdata)
|
cr_spell(const void * v, char * buffer, const void * userdata)
|
||||||
{
|
{
|
||||||
|
@ -392,7 +404,7 @@ creport_init(void)
|
||||||
{
|
{
|
||||||
tsf_register("report", &cr_ignore);
|
tsf_register("report", &cr_ignore);
|
||||||
tsf_register("string", &cr_string);
|
tsf_register("string", &cr_string);
|
||||||
tsf_register("order", &cr_string);
|
tsf_register("order", &cr_order);
|
||||||
tsf_register("spell", &cr_spell);
|
tsf_register("spell", &cr_spell);
|
||||||
tsf_register("int", &cr_int);
|
tsf_register("int", &cr_int);
|
||||||
tsf_register("unit", &cr_unit);
|
tsf_register("unit", &cr_unit);
|
||||||
|
|
Loading…
Reference in New Issue