From: brain Date: Mon, 1 Jan 2007 19:41:26 +0000 (+0000) Subject: Debug stuff, pay it no attention X-Git-Tag: v2.0.23~6183 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=06fbdc85aa8016628f25e3279bb58a7ed169ae22;p=user%2Fhenk%2Fcode%2Finspircd.git Debug stuff, pay it no attention git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6202 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index c86806098..bdacb1f2e 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -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()); } } }