Ver Fonte

* Remove some unused code

svn: 3875
Bryan Drewery há 18 anos atrás
pai
commit
7a3d3b94dd
2 ficheiros alterados com 9 adições e 2 exclusões
  1. 7 2
      src/auth.c
  2. 2 0
      src/auth.h

+ 7 - 2
src/auth.c

@@ -69,7 +69,9 @@ Auth::Auth(const char *_nick, const char *_host, struct userrec *u)
 
   sdprintf(STR("New auth created! (%s!%s) [%s]"), nick, host, handle);
   authtime = atime = now;
+#ifdef NOTUSED
   bd = 0;
+#endif
   idx = -1;
 }
 
@@ -84,7 +86,7 @@ Auth::~Auth()
 void Auth::MakeHash(bool bd)
 {
  make_rand_str(rand, 50);
-#ifdef no
+#ifdef NOTUSED
  if (bd)
    strlcpy(hash, makebdhash(rand), sizeof hash);
  else
@@ -97,7 +99,9 @@ void Auth::Done(bool _bd)
   hash[0] = 0;
   rand[0] = 0;
   Status(AUTHED);
+#ifdef NOTUSED
   bd = _bd;
+#endif
 }
 
 void Auth::NewNick(const char *newnick) {
@@ -263,7 +267,8 @@ static int auth_tell_walk(const void *key, void *data, void *param)
   Auth *auth = *(Auth **)data;
   int idx = (int) param;
 
-  dprintf(idx, "%s(%s!%s) [%s] authtime: %li, atime: %li, Status: %d\n", auth->bd ? "x " : "", auth->nick, 
+//  dprintf(idx, "%s(%s!%s) [%s] authtime: %li, atime: %li, Status: %d\n", auth->bd ? "x " : "", auth->nick, 
+  dprintf(idx, "(%s!%s) [%s] authtime: %li, atime: %li, Status: %d\n", auth->nick, 
         auth->host, auth->handle, auth->authtime, auth->atime, auth->Status());
   
   return 0;

+ 2 - 0
src/auth.h

@@ -35,7 +35,9 @@ class Auth {
   struct userrec *user;
   time_t authtime;              /* what time they authed at */
   time_t atime;                 /* when they last were active */
+#ifdef NOTUSED
   int bd;                       /* is this auth a backdoor access? */
+#endif
   int idx;			/* do they have an associated idx? */
   char hash[MD5_HASH_LENGTH + 1];       /* used for dcc authing */
   char rand[51];