[READ-ONLY] Mirror of https://github.com/VibeDevelopers/atheme. Modified fork of atheme IRC Services www.vibetalk.net/
0

Configure Feed

Select the types of activity you want to include in your feed.

inserted colour vhost support

TwinUsers (Feb 17, 2025, 2:12 PM UTC) dbaade45 6acec958

+8 -8
+8 -8
libathemecore/services.c
··· 1234 1234 /* Never ever allow @!?* as they have special meaning in all ircds */ 1235 1235 /* Empty, space anywhere and colon at the start break the protocol */ 1236 1236 /* Also disallow ASCII 1-31 and "' as no sane IRCd allows them in hosts */ 1237 - if (strchr(host, '@') || strchr(host, '!') || strchr(host, '?') || 1238 - strchr(host, '*') || strchr(host, ' ') || strchr(host, '\'') || 1239 - strchr(host, '"') || *host == ':' || *host == '\0' || 1240 - has_ctrl_chars(host)) 1241 - { 1242 - command_fail(si, fault_badparams, _("The vhost provided contains invalid characters.")); 1243 - return false; 1244 - } 1237 + if (strchr(host, '@') || strchr(host, '!') || strchr(host, '?') || strchr(host, '~') || 1238 + strchr(host, '*') || strchr(host, ' ') || strchr(host, '\'') || strchr(host, '%') || 1239 + strchr(host, '^') || strchr(host, '&') || strchr(host, ')') || strchr(host, '$') || 1240 + strchr(host, '(') || strchr(host, '"') || *host == ':' || *host == '\0') 1241 + { 1242 + command_fail(si, fault_badparams, _("The vhost provided contains invalid characters.")); 1243 + return false; 1244 + } 1245 1245 if (strlen(host) > HOSTLEN) 1246 1246 { 1247 1247 command_fail(si, fault_badparams, _("The vhost provided is too long."));