]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Put servername in remote quits
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 20:45:28 +0000 (20:45 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 20:45:28 +0000 (20:45 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5077 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 36905beefb5ab0a9d9d02136a9602dbd1569bea4..cde35c86231db6a4a91f0ca0bea04516bd38d937 100644 (file)
@@ -713,19 +713,15 @@ void userrec::QuitUser(InspIRCd* Instance, userrec *user,const std::string &quit
        }
 
        /*
        }
 
        /*
-        * this must come before the ServerInstance->WriteOpers so that it doesnt try to fill their buffer with anything
-        * if they were an oper with +s.
-        *
-        * XXX -
-        * In the current implementation, we only show local quits, as we only show local connects. With 
-        * the proposed implmentation of snomasks however, this will likely change in the (near?) future.
+        * this must come before the ServerInstance->SNO->WriteToSnoMaskso that it doesnt try to fill their buffer with anything
+        * if they were an oper with +sn +qQ.
         */
        if (user->registered == REG_ALL)
        {
                if (IS_LOCAL(user))
                        Instance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s]",user->nick,user->ident,user->host,reason.c_str());
                else
         */
        if (user->registered == REG_ALL)
        {
                if (IS_LOCAL(user))
                        Instance->SNO->WriteToSnoMask('q',"Client exiting: %s!%s@%s [%s]",user->nick,user->ident,user->host,reason.c_str());
                else
-                       Instance->SNO->WriteToSnoMask('Q',"Client exiting: %s!%s@%s [%s]",user->nick,user->ident,user->host,reason.c_str());
+                       Instance->SNO->WriteToSnoMask('Q',"Client exiting on server %s: %s!%s@%s [%s]",user->server,user->nick,user->ident,user->host,reason.c_str());
                user->AddToWhoWas();
        }
 
                user->AddToWhoWas();
        }