From ae0f7643dd34445906e2f4dcf1845cc32d3cc044 Mon Sep 17 00:00:00 2001 From: griever Date: Tue, 5 Feb 2002 23:47:44 +0000 Subject: [PATCH] Fixing broken tokens --- Changes | 1 + src/s_user.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 5fa0e5850..683cbd11c 100644 --- a/Changes +++ b/Changes @@ -1174,3 +1174,4 @@ v- Fixed some bugreport stuff UnlockEventSystem(). In EVENT() functions, the system _is_ locked. This might fix the double recursion mutex problem we got. - More -Wall cleanups +- Fixed hunt_server_token (use IsToken on acptr->from, not acptr) diff --git a/src/s_user.c b/src/s_user.c index 7f15a9bf6..048250f01 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -398,7 +398,7 @@ int hunt_server_token(aClient *cptr, aClient *sptr, char *command, char *token, return HUNTED_ISME; if (match(acptr->name, parv[server])) parv[server] = acptr->name; - if (IsToken(acptr)) { + if (IsToken(acptr->from) { sprintf(buff, ":%s %s ", parv[0], token); strcat(buff, params); sendto_one(acptr, buff, parv[1], parv[2],