summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-22 06:17:19 -0500
committerepoch <epoch@thebackupbox.net>2020-04-22 06:17:19 -0500
commitb197cf7a4164471a5af97fffd742c3d825111cca (patch)
treedcddc78f3cafea1f2523bc1afe135bda6e4a6e47 /src
parente27474aac0c7b1dc7680c580d881e7a5d843d0d5 (diff)
downloadhackvr-b197cf7a4164471a5af97fffd742c3d825111cca.tar.gz
hackvr-b197cf7a4164471a5af97fffd742c3d825111cca.zip
attempt at fixing bug in renamegroup based on hashtable crap
Diffstat (limited to 'src')
-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;