]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added extra command logging
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 5 Apr 2004 20:10:53 +0000 (20:10 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 5 Apr 2004 20:10:53 +0000 (20:10 +0000)
Improved m_globops to give the sender details in the message

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@395 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_globops.cpp

index 85b1b206e668fc9e2a427224cb1383fe08489a98..fc8cebaa736636af37c526bcea28bc5099712052 100644 (file)
@@ -12,10 +12,10 @@ Server *Srv;
         
 void handle_globops(char **parameters, int pcnt, userrec *user)
 {
-       std::string line = "";
+       std::string line = "*** GLOBOPS - From " + std::string(user->nick) + ": ";
        for (int i = 0; i < pcnt; i++)
        {
-               line = line + string(parameters[i]) + " ";
+               line = line + std::string(parameters[i]) + " ";
        }
        Srv->SendToModeMask("og",WM_AND,line);
 }