int type = 4;
const char *str;
str = conf_get_data("server/type", RECDB_QSTRING);
- type = atoi(str);
+ if(str)
+ type = atoi(str);
+ else
+ type = 4;/* default to 040 style topics */
if (type == 5) {
putsock("%s " P10_TOPIC " %s %s " FMT_TIME_T " " FMT_TIME_T " :%s", service->numeric, what->name, who->nick, what->timestamp, now, topic);
} else {
- who = service; /* REMOVE LINE FOR NEFARIOUS 0.5.0 */
+ who = service;
putsock("%s " P10_TOPIC " %s :%s", who->numeric, what->name, topic);
}
}