+ char *aliases = CtdlGetSysConfig(GLOBAL_ALIASES); // First hit the Global Alias Table
+ if (aliases) {
+ char *aptr = aliases;
+ while ((t = strtok_r(aptr, "\n", &aptr))) {
+ char *bar = strchr(t, '|');
+ if (bar) {
+ bar[0] = 0;
+ ++bar;
+ if (!strcasecmp(name, t)) {
+ syslog(LOG_DEBUG, "\033[36mAliasing <%s> to <%s>\033[0m", name, bar);
+ strcpy(name, bar);
+ }
+ }
+ }