Prechádzať zdrojové kódy

Merge branch 'act_on_user_lookup'

* act_on_user_lookup:
  * If a user is discovered in cmd_find or cmd_channel, act on it and check them in all channels

Conflicts:
	src/mod/irc.mod/cmdsirc.c
Bryan Drewery 16 rokov pred
rodič
commit
cb279eb182
1 zmenil súbory, kde vykonal 9 pridanie a 0 odobranie
  1. 9 0
      src/mod/irc.mod/cmdsirc.c

+ 9 - 0
src/mod/irc.mod/cmdsirc.c

@@ -1318,6 +1318,11 @@ static void cmd_find(int idx, char *par)
             simple_snprintf(s, sizeof(s), "%s!%s", m->nick, m->userip);
             m->user = get_user_by_host(s);
           }
+
+          /* Managed to get the user for a previously unknown user. Act on it! */
+          if (m->user)
+            check_this_user(m->user->handle, 0, NULL);
+
           m->tried_getuser = 1;
         }
         if ((!lookup_user && wild_match(par, s)) || (lookup_user && m->user == u)) {
@@ -1525,6 +1530,10 @@ static void cmd_channel(int idx, char *par)
           }
         }
 
+        /* Managed to get the user for a previously unknown user. Act on it! */
+        if (m->user)
+          check_this_user(m->user->handle, 0, NULL);
+
         m->tried_getuser = 1;
       }
       if (m->user == NULL)