Thanks for the tip it looks like the issue was how it was parsing the spell name
here is what I did to fix it:
Code:
ACMD(do_brew)
{
struct obj_data *container;
struct obj_data *obj, *next_obj;
char bottle_name[MAX_STRING_LENGTH];
char spell_name[MAX_STRING_LENGTH];
char buf[MAX_INPUT_LENGTH];
char *temp1, *temp2;
int potion, found = FALSE;
temp1 = one_argument(argument, bottle_name);
/* sanity check */
if (temp1) {
temp2 = get_spell_name(temp1);
if (temp2)
strcpy(spell_name, temp2);
} else {
bottle_name[0] = '\0';
spell_name[0] = '\0';
}