Changeset 774 for branches/ithildin-1.1
- Timestamp:
- 09/27/06 12:28:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-1.1/modules/ircd/addons/hostmask.c
r773 r774 19 19 @DEPENDENCIES@: ircd 20 20 */ 21 22 #define CGI_IRC_SPECIAL_MASK "cgi:irc" 21 23 22 24 static struct mdext_item *class_hostmask_mdi; … … 53 55 /* verify the mask. make sure it consists ONLY of valid 54 56 * characters, and that it has multiple parts. */ 55 if (!istr_okay(ircd.maps.host, s) || strchr(s, '.') == NULL) 57 if (strcasecmp(s, CGI_IRC_SPECIAL_MASK) && 58 (!istr_okay(ircd.maps.host, s) || 59 strchr(s, '.') == NULL)) 56 60 log_error("hostmask %s is invalid.", s); 57 61 else … … 72 76 mask = mdext(cli->conn->cls, class_hostmask_mdi); 73 77 if (mask != NULL && *mask != '\0') { 74 if (!strcasecmp(mask, "cgi:irc")) {78 if (!strcasecmp(mask, CGI_IRC_SPECIAL_MASK)) { 75 79 /* Special CGI:IRC hack. We take the password, if supplied, and 76 80 * use it as a hostname (as long as it's valid) */
Note: See TracChangeset
for help on using the changeset viewer.
