]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Debug stuff, pay it no attention
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 1 Jan 2007 19:41:26 +0000 (19:41 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 1 Jan 2007 19:41:26 +0000 (19:41 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6202 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_swhois.cpp

index c868060984175f8afa8f0c15a65e1c44ed051f18..bdacb1f2e604bcc751b495ff34a6dfaf22332b28 100644 (file)
@@ -118,6 +118,7 @@ class ModuleSWhois : public Module
        // it is ours.
        virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname)
        {
+               ServerInstance->Log(DEBUG,"Sync user metadata type '%s'", extname.c_str());
                // check if the linking module wants to know about OUR metadata
                if (extname == "swhois")
                {
@@ -130,6 +131,10 @@ class ModuleSWhois : public Module
                                // sees fit, and send it on its way. We dont need or want to know how.
                                proto->ProtoSendMetaData(opaque,TYPE_USER,user,extname,*swhois);
                        }
+                       else
+                       {
+                               ServerInstance->Log(DEBUG,"User has a null swhois string!");
+                       }
                }
        }
 
@@ -173,6 +178,7 @@ class ModuleSWhois : public Module
                // check if its our metadata key, and its associated with a user
                if ((target_type == TYPE_USER) && (extname == "swhois"))
                {
+                       ServerInstance->Log(DEBUG,"Extend with swhois");
                        userrec* dest = (userrec*)target;
                        // if they dont already have an swhois field, accept the remote server's
                        std::string* text;
@@ -180,6 +186,7 @@ class ModuleSWhois : public Module
                        {
                                std::string* text = new std::string(extdata);
                                dest->Extend("swhois",text);
+                               ServerInstance->Log(DEBUG,"extended: %s %s", dest->nick, dest->text.c_str());
                        }
                }
        }