Issue information

Issue ID
#5722
Status
Fixed
Severity
Fair
Started
Hercules Elf Bot
May 9, 2012 17:09
Last Post
Hercules Elf Bot
May 27, 2012 14:53
Confirmation
Yes (5)
No (0)

Hercules Elf Bot - May 9, 2012 17:09

Originally posted by [b]Lighta[/b]
Since clif command using atcommand, I don't remenber in wich revision, those used hardcoded atcommand symbole causing failure if your symbole doesn't match.
To be more explicit let's take an exemple :
[code]
void clif_parse_GMHide(int fd, struct map_session_data *sd)
{
is_atcommand(fd, sd, "@hide", 1);
}
[/code]
If my atcommand_symbole is : "!"
the /hide command wont execute !hide and then fail.
So the previous code should be something like :
[code]
void clif_parse_GMHide(int fd, struct map_session_data *sd)
{
char command[NAME_LENGTH];
snprintf(command, sizeof(command)-1, "%shide", &atcommand_symbol);
is_atcommand(fd, sd, command, 1);
}
[/code]
(here we're reading atcommand_symbole defined in conf).
Hope it's clear enough.

Hercules Elf Bot - May 13, 2012 8:51

Originally posted by [b]Ind[/b]
Fixed in [rev=16108]