Relay server connect fixes

This commit is contained in:
Michiel Broek 2006-05-25 20:39:49 +00:00
parent 71b9a88247
commit 4b9db8220a

View File

@ -1020,6 +1020,8 @@ int command_server(char *hostname, char *parameters)
unsigned int token;
int i, j, ihops, found = FALSE;
Syslog('c', "IBC: cmd_server(%s, %s)", hostname, parameters);
name = strtok(parameters, " \0");
hops = strtok(NULL, " \0");
token = atoi(strtok(NULL, " \0"));
@ -1035,6 +1037,8 @@ int command_server(char *hostname, char *parameters)
}
}
Syslog('c', "IBC: found=%s", found ?"True":"False");
if (found && fullname == NULL) {
send_msg(i, (char *)"400 SERVER: Not enough parameters\r\n");
return 400;