Mercurial > hg > nnchat
comparison main.c @ 531:5d1a832d6e61
Fix removing from lists.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 06 Jun 2012 17:24:08 +0300 |
parents | f0bca971170b |
children | cfab338d3c9e |
comparison
equal
deleted
inserted
replaced
530:f0bca971170b | 531:5d1a832d6e61 |
---|---|
716 // Add or remove someone to/from ignore | 716 // Add or remove someone to/from ignore |
717 qlist_t *user = th_llist_find_func(*list, name, str_compare); | 717 qlist_t *user = th_llist_find_func(*list, name, str_compare); |
718 if (user != NULL) | 718 if (user != NULL) |
719 { | 719 { |
720 printMsgQ(currWin, "Removed user '%s' from %s list.\n", name, listname); | 720 printMsgQ(currWin, "Removed user '%s' from %s list.\n", name, listname); |
721 th_llist_delete_node(&setIgnoreList, user); | 721 th_llist_delete_node(list, user); |
722 } | 722 } |
723 else | 723 else |
724 { | 724 { |
725 printMsgQ(currWin, "Added '%s' to %s list.\n", name, listname); | 725 printMsgQ(currWin, "Added '%s' to %s list.\n", name, listname); |
726 th_llist_append(list, th_strdup(name)); | 726 th_llist_append(list, th_strdup(name)); |