From: brain Date: Wed, 9 Jan 2008 15:26:24 +0000 (+0000) Subject: Fix for bug #464, taxonomy output spooled to target not to requestor, reported by... X-Git-Tag: v2.0.23~4060 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=a35e98c32be1d8f4728029a42236a24f90789344;p=user%2Fhenk%2Fcode%2Finspircd.git Fix for bug #464, taxonomy output spooled to target not to requestor, reported by John, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8678 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_taxonomy.cpp b/src/modules/m_taxonomy.cpp index 0790949a8..038582d92 100644 --- a/src/modules/m_taxonomy.cpp +++ b/src/modules/m_taxonomy.cpp @@ -73,9 +73,9 @@ class ModuleTaxonomy : public Module { if (target_type == TYPE_USER) { - User* spool = (User*)opaque; - std::string taxstr = "304 " + std::string(spool->nick) + ":TAXONOMY METADATA "+extname+" = "+extdata; - spool->WriteServ(taxstr); + User* spoolto = (User*)target; + std::string taxstr = "304 " + std::string(spoolto->nick) + ":TAXONOMY METADATA "+extname+" = "+extdata; + spoolto->WriteServ(taxstr); claimed = true; } }