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);