Relay server connect fixes
This commit is contained in:
parent
71b9a88247
commit
4b9db8220a
@ -1020,6 +1020,8 @@ int command_server(char *hostname, char *parameters)
|
|||||||
unsigned int token;
|
unsigned int token;
|
||||||
int i, j, ihops, found = FALSE;
|
int i, j, ihops, found = FALSE;
|
||||||
|
|
||||||
|
Syslog('c', "IBC: cmd_server(%s, %s)", hostname, parameters);
|
||||||
|
|
||||||
name = strtok(parameters, " \0");
|
name = strtok(parameters, " \0");
|
||||||
hops = strtok(NULL, " \0");
|
hops = strtok(NULL, " \0");
|
||||||
token = atoi(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) {
|
if (found && fullname == NULL) {
|
||||||
send_msg(i, (char *)"400 SERVER: Not enough parameters\r\n");
|
send_msg(i, (char *)"400 SERVER: Not enough parameters\r\n");
|
||||||
return 400;
|
return 400;
|
||||||
|
Reference in New Issue
Block a user