| 163 |
|
* returns: (see #defines) |
| 164 |
|
*/ |
| 165 |
|
int |
| 166 |
< |
hunt_server(struct Client *client_p, struct Client *source_p, const char *command, |
| 166 |
> |
hunt_server(struct Client *source_p, const char *command, |
| 167 |
|
const int server, const int parc, char *parv[]) |
| 168 |
|
{ |
| 169 |
|
struct Client *target_p = NULL; |
| 185 |
|
if (MyClient(source_p)) |
| 186 |
|
target_p = hash_find_client(parv[server]); |
| 187 |
|
else |
| 188 |
< |
target_p = find_person(client_p, parv[server]); |
| 188 |
> |
target_p = find_person(source_p, parv[server]); |
| 189 |
|
|
| 190 |
|
if (target_p) |
| 191 |
|
if (target_p->from == source_p->from && !MyConnect(target_p)) |
| 222 |
|
continue; |
| 223 |
|
target_p = ptr->data; |
| 224 |
|
|
| 225 |
< |
if (IsRegistered(target_p) && (target_p != client_p)) |
| 225 |
> |
if (IsRegistered(target_p) && (target_p != source_p->from)) |
| 226 |
|
break; |
| 227 |
|
} |
| 228 |
|
} |