changeset 265:b9c650db8a6a

Rename variable nnIgnoreList to setIgnoreList.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 03 Jun 2011 11:18:50 +0300
parents 4c1c18a388d9
children 5175ed15ffa4
files nnchat.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);