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;
static int topiclen = TOPICLEN;
static int maxnicklen = NICKLEN - 1;
- add_isupport("CHANTYPES", isupport_stringptr, &allowed_chantypes);
+ add_isupport("CHANTYPES", isupport_string, allowed_chantypes);
add_isupport("EXCEPTS", isupport_boolean, &ConfigChannel.use_except);
add_isupport("INVEX", isupport_boolean, &ConfigChannel.use_invex);
add_isupport("CHANMODES", isupport_chanmodes, NULL);