Anope IRC Services

Anope Development => Feature Requests => Topic started by: Trystan Scott Lee on September 30, 2007, 12:13:42 AM

Title: ModuleCommandSetService()
Post by: Trystan Scott Lee on September 30, 2007, 12:13:42 AM
Call it what you will.. but I noticed when I was doing some coding on a pseudo client that when I checked the command table it was listed as "unknown" sure enough the code when adding a command if the command table is not known just sets unknown, it would be nice if modules could change this for debugging.. its a bitch to have 10+ unknowns, I have added a code snippet below that I added to my module to make my life easier


Code: [Select]

void ModuleCommandSetService(Command *c, char *servicename)
{
    if (c && servicename) {
        if (c->service) {
            free(c->service);
        }
        c->service = sstrdup(servicename);
    }
}