git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6202
e03df62e-2008-0410-955e-
edbf42e46eb7
// it is ours.
virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname)
{
// 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")
{
// check if the linking module wants to know about OUR metadata
if (extname == "swhois")
{
// sees fit, and send it on its way. We dont need or want to know how.
proto->ProtoSendMetaData(opaque,TYPE_USER,user,extname,*swhois);
}
// 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!");
+ }
// check if its our metadata key, and its associated with a user
if ((target_type == TYPE_USER) && (extname == "swhois"))
{
// 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;
userrec* dest = (userrec*)target;
// if they dont already have an swhois field, accept the remote server's
std::string* text;
{
std::string* text = new std::string(extdata);
dest->Extend("swhois",text);
{
std::string* text = new std::string(extdata);
dest->Extend("swhois",text);
+ ServerInstance->Log(DEBUG,"extended: %s %s", dest->nick, dest->text.c_str());