diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/channel_mode.c | 6 | ||||
-rw-r--r-- | src/client.c | 11 | ||||
-rw-r--r-- | src/conf.c | 2 |
3 files changed, 6 insertions, 13 deletions
diff --git a/src/channel_mode.c b/src/channel_mode.c index 818c1ee..5ec5256 100644 --- a/src/channel_mode.c +++ b/src/channel_mode.c @@ -967,7 +967,7 @@ chm_voice(struct Client *client_p, struct Client *source_p, opnick = parv[(*parn)++]; - if ((targ_p = find_chasing(source_p, opnick, NULL)) == NULL) + if ((targ_p = find_chasing(source_p, opnick)) == NULL) return; if (!IsClient(targ_p)) return; @@ -1044,7 +1044,7 @@ chm_hop(struct Client *client_p, struct Client *source_p, opnick = parv[(*parn)++]; - if ((targ_p = find_chasing(source_p, opnick, NULL)) == NULL) + if ((targ_p = find_chasing(source_p, opnick)) == NULL) return; if (!IsClient(targ_p)) return; @@ -1120,7 +1120,7 @@ chm_op(struct Client *client_p, struct Client *source_p, opnick = parv[(*parn)++]; - if ((targ_p = find_chasing(source_p, opnick, NULL)) == NULL) + if ((targ_p = find_chasing(source_p, opnick)) == NULL) return; if (!IsClient(targ_p)) return; diff --git a/src/client.c b/src/client.c index 253bbf4..b3e4a25 100644 --- a/src/client.c +++ b/src/client.c @@ -526,17 +526,13 @@ find_person(const struct Client *const client_p, const char *name) /* * find_chasing - find the client structure for a nick name (name) * using history mechanism if necessary. If the client is not found, - * an error message (NO SUCH NICK) is generated. If the client was found - * through the history, chasing will be 1 and otherwise 0. + * an error message (NO SUCH NICK) is generated. */ struct Client * -find_chasing(struct Client *source_p, const char *name, int *const chasing) +find_chasing(struct Client *source_p, const char *name) { struct Client *who = find_person(source_p->from, name); - if (chasing) - *chasing = 0; - if (who) return who; @@ -552,9 +548,6 @@ find_chasing(struct Client *source_p, const char *name, int *const chasing) return NULL; } - if (chasing) - *chasing = 1; - return who; } @@ -2031,7 +2031,7 @@ find_user_host(struct Client *source_p, char *user_host_or_nick, /* Try to find user@host mask from nick */ /* Okay to use source_p as the first param, because source_p == client_p */ if ((target_p = - find_chasing(source_p, user_host_or_nick, NULL)) == NULL) + find_chasing(source_p, user_host_or_nick)) == NULL) return 0; if (IsExemptKline(target_p)) |