+ if (rb_inet_pton_sock(server_p->host, (struct sockaddr *)&theiripnum) <= 0)
+ {
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "Server %s host is a DNS name which is currently not implemented",
+ server_p->name);
+ if(by && IsPerson(by) && !MyClient(by))
+ sendto_one_notice(by, ":Server %s host is a DNS name which is currently not implemented",
+ server_p->name);
+ return 0;
+ }
+
+#ifdef IPV6
+ if(theiripnum.ss_family == AF_INET6)
+ ((struct sockaddr_in6 *)&theiripnum)->sin6_port = htons(server_p->port);
+ else
+#endif
+ ((struct sockaddr_in *)&theiripnum)->sin_port = htons(server_p->port);
+