]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
+Q and +C (remote quit and connect) snomasks implemented
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 19:17:20 +0000 (19:17 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 29 Aug 2006 19:17:20 +0000 (19:17 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5066 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp
src/users.cpp

index 3a020f34243d4ada38101711acd45ed93ab3fd17..c3d8e304bd269f7c2d079285dad74ea9dc851c32 100644 (file)
@@ -1742,7 +1742,7 @@ class TreeSocket : public InspSocket
 #endif
                        _new->SetSockAddr(AF_INET, params[6].c_str(), 0);
 
-               this->Instance->WriteOpers("*** Client connecting at %s: %s!%s@%s [%s]",_new->server,_new->nick,_new->ident,_new->host, _new->GetIPString());
+               this->Instance->SNO->WriteToSnoMask('C',"Client connecting at %s: %s!%s@%s [%s]",_new->server,_new->nick,_new->ident,_new->host, _new->GetIPString());
 
                params[7] = ":" + params[7];
                DoOneToAllButSender(source,"NICK",params,source);
index c00fcf415f3940d0548c9c262b46022491b90d80..36905beefb5ab0a9d9d02136a9602dbd1569bea4 100644 (file)
@@ -723,7 +723,9 @@ void userrec::QuitUser(InspIRCd* Instance, userrec *user,const std::string &quit
        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());
+                       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());
                user->AddToWhoWas();
        }
 
@@ -1079,7 +1081,7 @@ void userrec::FullConnect(CullList* Goners)
        FOREACH_MOD(I_OnUserConnect,OnUserConnect(this));
        FOREACH_MOD(I_OnPostConnect,OnPostConnect(this));
        this->registered = REG_ALL;
-       ServerInstance->SNO->WriteToSnoMask('c',"*** Client connecting on port %d: %s!%s@%s [%s]", this->GetPort(), this->nick, this->ident, this->host, this->GetIPString());
+       ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d: %s!%s@%s [%s]", this->GetPort(), this->nick, this->ident, this->host, this->GetIPString());
 }
 
 /** userrec::UpdateNick()