]> 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 f75a2cf9ffacfa887e1410ceb69238e0b581930c..637d7aaf850cab41b441a0093e3a2ca5c6a62d1d 100644 (file)
@@ -338,6 +338,7 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance)
        sendq = "";
        WriteError = "";
        res_forward = res_reverse = NULL;
+       Visibility = NULL;
        ip = NULL;
        chans.clear();
        invites.clear();
@@ -1059,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'.
@@ -1952,4 +1959,16 @@ const char* userrec::GetOperQuit()
        return operquit ? operquit : "";
 }
 
+VisData::VisData()
+{
+}
+
+VisData::~VisData()
+{
+}
+
+bool VisData::VisibleTo(userrec* user)
+{
+       return true;
+}