/** Sends response \a r (from #ReportType) to client \a c. */
#define sendheader(c, r) \
- ssl_send(cli_fd(c), cli_socket(c).ssl, HeaderMessages[(r)].message, HeaderMessages[(r)].length)
+ sendrawto_one(c, "%s", HeaderMessages[(r)].message)
+ //ssl_send(cli_fd(c), cli_socket(c).ssl, HeaderMessages[(r)].message, HeaderMessages[(r)].length)
/** Enumeration of IAuth connection flags. */
enum IAuthFlag
}
/** Finishes a LOC request. */
-void auth_loc_reply(const char *numeric, const char *account, const char *fakehost, const char *flags[], signed int argc) {
+void auth_loc_reply(const char *numeric, const char *account, const char *fakehost, char *flags[], signed int argc) {
char *timestamp;
struct AuthRequest *auth;
/* Set unregistered numnick. */
auth_set_numnick(auth);
- /* Try to start DNS lookup. */
- start_dns_query(auth);
-
- /* Try to start ident lookup. */
- start_auth_query(auth);
-
/* Set required client inputs for users. */
if (IsUserPort(client)) {
cli_user(client) = make_user(client);
if(start_iauth_query(auth)) return;
}
+ /* Try to start DNS lookup. */
+ start_dns_query(auth);
+
+ /* Try to start ident lookup. */
+ start_auth_query(auth);
+
/* Add client to GlobalClientList. */
add_client_to_list(client);
}
/* If account has a creation timestamp, use it. */
assert(cli_user(cli) != NULL);
- if (params[0][len] == ':')
+ if (params[0][len] == ':') {
cli_user(cli)->acc_create = strtoul(params[0] + len + 1, NULL, 10);
+ params[0][len] = '\0';
+ }
/* Copy account name to User structure. */
ircd_strncpy(cli_user(cli)->account, params[0], ACCOUNTLEN);