* Make connect to networks non-blocking. (#133)
+ * Support IRCD 005 parameter. (#160)
+
LICENSING
* CtrlProxy is now licensed under the GNU GPLv3.
g_free(info->maxlist);
g_free(info->idchan);
g_free(info->statusmsg);
+ g_free(info->ircd);
}
char *network_info_string(struct network_info *info)
if (info->chantypes != NULL)
fs = g_list_append(fs, g_strdup_printf("CHANTYPES=%s", info->chantypes));
+ if (info->ircd != NULL)
+ fs = g_list_append(fs, g_strdup_printf("IRCD=%s", info->ircd));
+
if (info->chanmodes != NULL) {
char *tmp = g_strjoinv(",", info->chanmodes);
fs = g_list_append(fs, g_strdup_printf("CHANMODES=%s", tmp));
} else if (!g_strcasecmp(key, "NETWORK")) {
g_free(info->name);
info->name = g_strdup(val);
+ } else if (!g_strcasecmp(key, "IRCD")) {
+ g_free(info->ircd);
+ info->ircd = g_strdup(val);
} else if (!g_strcasecmp(key, "NICKLEN") || !g_strcasecmp(key, "MAXNICKLEN")) {
info->nicklen = atoi(val);
} else if (!g_strcasecmp(key, "USERLEN")) {
s->config = sc;
network_info_init(&s->info);
s->info.name = g_strdup(s->config->name);
+ s->info.ircd = g_strdup("ctrlproxy");
s->connection.pending_lines = g_queue_new();
s->global = global;
s->info.forced_nick_changes = TRUE; /* Forced nick changes are done by ctrlproxy */