summaryrefslogtreecommitdiff
path: root/src/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch.c')
-rw-r--r--src/watch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/watch.c b/src/watch.c
index cdc859d..b3aff72 100644
--- a/src/watch.c
+++ b/src/watch.c
@@ -142,7 +142,7 @@ watch_add_to_hash_table(const char *nick, struct Client *client_p)
anptr->lasttime = CurrentTime;
strlcpy(anptr->nick, nick, sizeof(anptr->nick));
- dlinkAdd(anptr, &anptr->node, &watchTable[strhash(nick)]);
+ dlinkAdd(anptr, &anptr->node, &watchTable[strhash(anptr->nick)]);
}
else
{
@@ -183,8 +183,8 @@ watch_del_from_hash_table(const char *nick, struct Client *client_p)
/* In case this header is now empty of notices, remove it */
if (anptr->watched_by.head == NULL)
{
- assert(dlinkFind(&watchTable[strhash(nick)], anptr) != NULL);
- dlinkDelete(&anptr->node, &watchTable[strhash(nick)]);
+ assert(dlinkFind(&watchTable[strhash(anptr->nick)], anptr) != NULL);
+ dlinkDelete(&anptr->node, &watchTable[strhash(anptr->nick)]);
mp_pool_release(anptr);
}
}