changeset 620:a1abf812785f

Rename a function.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 27 May 2014 07:25:59 +0300
parents f930003dfa1e
children 29b8ff5b625b
files main.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Sun May 25 00:45:02 2014 +0300
+++ b/main.c	Tue May 27 07:25:59 2014 +0300
@@ -385,6 +385,7 @@
     return 0;
 }
 
+
 void printMsgFile(nn_window_t *win, int flags, const char *stamp, const char *msg)
 {
     if (win != NULL && win->logFile != NULL)
@@ -559,7 +560,7 @@
 }
 
 
-BOOL checkNameList(qlist_t *list, const char *name)
+BOOL nn_check_name_list(qlist_t *list, const char *name)
 {
     qlist_t *node;
     
@@ -614,7 +615,7 @@
      * that it is not our OWN username!
      */
     isMine = strcmp(name, optUserName) == 0;
-    isIgnored = setIgnoreMode && !isMine && checkNameList(setIgnoreList, name);
+    isIgnored = setIgnoreMode && !isMine && nn_check_name_list(setIgnoreList, name);
 
     // Is it a special control message?
     if (*msg == '/')
@@ -643,9 +644,9 @@
                 in_msg = "";
             *tmp = 0;
 
-            if (!optOnlyFriendPrv || !checkNameList(setFriendList, in_name))
+            if (!optOnlyFriendPrv || !nn_check_name_list(setFriendList, in_name))
             {
-                isIgnored = setIgnoreMode && checkNameList(setIgnoreList, in_name);
+                isIgnored = setIgnoreMode && nn_check_name_list(setIgnoreList, in_name);
                 win = nnwin_find(in_name);
 
                 if (win != NULL)
@@ -690,7 +691,7 @@
         }
         else
         {
-           if (checkNameList(setFriendList, name))
+           if (nn_check_name_list(setFriendList, name))
            {
                colorNick = 11;
                colorText = 0;