summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-01 19:41:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-01 19:41:26 +0000
commit06fbdc85aa8016628f25e3279bb58a7ed169ae22 (patch)
tree2b5f6ea96edff7671e46a64d7c8652d115873da4 /src
parentc41191ac09a3e8f8e28a05b1bd002cae33264647 (diff)
Debug stuff, pay it no attention
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6202 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_swhois.cpp7
1 files changed, 7 insertions, 0 deletions
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());
}
}
}