/*
- * charybdis: A slightly useful ircd.
+ * Solanum: a slightly advanced ircd
* supported.c: isupport (005) numeric
*
* Copyright (C) 2006 Jilles Tjoelker
return *(char * const *)ptr;
}
-static const char *
+const char *
isupport_umode(const void *ptr)
{
const char *str;
static const char *
isupport_chanmodes(const void *ptr)
{
- static char result[80];
+ static char result[300];
snprintf(result, sizeof result, "%s%sbq,k,%slj,%s",
ConfigChannel.use_except ? "e" : "",
static const char *
isupport_chanlimit(const void *ptr)
{
- static char result[30];
+ static char result[BUFSIZE + 30];
snprintf(result, sizeof result, "%s:%i", allowed_chantypes, ConfigChannel.max_chans_per_user);
return result;
add_isupport("MODES", isupport_intptr, &maxmodes);
add_isupport("NETWORK", isupport_stringptr, &ServerInfo.network_name);
add_isupport("STATUSMSG", isupport_string, "@+");
- add_isupport("CALLERID", isupport_umode, "g");
add_isupport("CASEMAPPING", isupport_string, "rfc1459");
add_isupport("NICKLEN", isupport_nicklen, NULL);
add_isupport("MAXNICKLEN", isupport_intptr, &maxnicklen);
add_isupport("DEAF", isupport_umode, "D");
add_isupport("TARGMAX", isupport_targmax, NULL);
add_isupport("EXTBAN", isupport_extban, NULL);
- add_isupport("CLIENTVER", isupport_string, "3.0");
}
void