summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hackvr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hackvr.c b/src/hackvr.c
index 0d41f5a..7779a3c 100644
--- a/src/hackvr.c
+++ b/src/hackvr.c
@@ -304,8 +304,10 @@ int hackvr_handler(char *line) {
}
gr=get_group_relative(a[2]);//this shouldn't be used here. why?
if(gr) {
+ ht_delete(&global.ht_group,gr->id);
free(gr->id);
- gr->id=strdup(a[3]);
+ gr->id=strdup(a[3]);//we also need to remove and reinsert into the hash table.
+ ht_setkey(&global.ht_group,gr->id,gr);
}
}
ret=1;