# HG changeset patch # User Matti Hamalainen # Date 1307089130 -10800 # Node ID b9c650db8a6af3638e5598005264c4c67a7b42e7 # Parent 4c1c18a388d933caeda10da3ebcf6f9708e44bab Rename variable nnIgnoreList to setIgnoreList. diff -r 4c1c18a388d9 -r b9c650db8a6a nnchat.c --- a/nnchat.c Fri Jun 03 11:18:19 2011 +0300 +++ b/nnchat.c Fri Jun 03 11:18:50 2011 +0300 @@ -69,7 +69,7 @@ BOOL optDebug = FALSE; BOOL optLogEnable = FALSE; -qlist_t *nnIgnoreList = NULL, +qlist_t *setIgnoreList = NULL, *setIdleMessages = NULL; nn_userhash_t *nnUsers = NULL; char *setConfigFile = NULL, @@ -437,7 +437,7 @@ BOOL checkIgnoreList(const char *name) { - qlist_t *node = nnIgnoreList; + qlist_t *node = setIgnoreList; while (node != NULL) { if (strcasecmp(name, (char *) node->data) == 0) return TRUE; @@ -685,18 +685,18 @@ char *name = trimLeft(buf + 7); if (strlen(name) > 0) { /* Add or remove someone to/from ignore */ - qlist_t *user = th_llist_find_func(nnIgnoreList, name, compareUsername); + qlist_t *user = th_llist_find_func(setIgnoreList, name, compareUsername); if (user != NULL) { printMsg("Removed user '%s' from ignore.\n", name); - th_llist_delete_node(&nnIgnoreList, user); + th_llist_delete_node(&setIgnoreList, user); } else { printMsg("Now ignoring '%s'.\n", name); - th_llist_append(&nnIgnoreList, th_strdup(name)); + th_llist_append(&setIgnoreList, th_strdup(name)); } } else { /* Just list whomever is in ignore now */ - qlist_t *user = nnIgnoreList; - ssize_t nuser = th_llist_length(nnIgnoreList); + qlist_t *user = setIgnoreList; + ssize_t nuser = th_llist_length(setIgnoreList); printMsg("Users ignored (%d): ", nuser); while (user != NULL) { if (user->data != NULL) { @@ -1082,7 +1082,7 @@ th_cfg_add_comment(&tmpcfg, "Default setting of ignore mode"); th_cfg_add_bool(&tmpcfg, "ignore", &setIgnoreMode, setIgnoreMode); th_cfg_add_comment(&tmpcfg, "People to be ignored when ignore mode is enabled"); - th_cfg_add_string_list(&tmpcfg, "ignore_list", &nnIgnoreList); + th_cfg_add_string_list(&tmpcfg, "ignore_list", &setIgnoreList); th_cfg_add_comment(&tmpcfg, "Random messages for idle timeout protection. If none are set, plain '.' is used."); th_cfg_add_string_list(&tmpcfg, "idle_messages", &setIdleMessages);