]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Make SAJOIN/SAPART more spanningtree friendly, they are throwbacks to the inspircd...
[user/henk/code/inspircd.git] / src / users.cpp
index 59d19adff0dec4a77ef299b9897d2f66de0062bf..637d7aaf850cab41b441a0093e3a2ca5c6a62d1d 100644 (file)
@@ -1060,6 +1060,12 @@ void userrec::FullConnect()
        if (ServerInstance->unregistered_count)
                ServerInstance->unregistered_count--;
 
+       /* Trigger LUSERS output, give modules a chance too */
+       int MOD_RESULT = 0;
+       FOREACH_RESULT(I_OnPreCommand, OnPreCommand("LUSERS", NULL, 0, this, true, "LUSERS"));
+       if (!MOD_RESULT)
+               ServerInstance->CallCommandHandler("LUSERS", NULL, 0, this);
+
        /*
         * fix 3 by brain, move registered = 7 below these so that spurious modes and host
         * changes dont go out onto the network and produce 'fake direction'.