Fix inadvertant 1.2 -> 1.1 compile error

git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8687 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-01-10 08:25:40 +00:00
parent ccd875244b
commit c1d49e258d
2 changed files with 4 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class ModuleTaxonomy : public Module
{
if (target_type == TYPE_USER)
{
User* spoolto = (User*)target;
userrec *spoolto = (userrec*)target;
std::string taxstr = "304 " + std::string(spoolto->nick) + ":TAXONOMY METADATA "+extname+" = "+extdata;
spoolto->WriteServ(taxstr);
claimed = true;

View File

@ -346,9 +346,11 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance)
void userrec::RemoveCloneCounts()
{
ServerInstance->Log(DEBUG, "Removing my clone counts");
clonemap::iterator x = ServerInstance->local_clones.find(this->GetIPString());
if (x != ServerInstance->local_clones.end())
{
ServerInstance->Log(DEBUG, "Removed local");
x->second--;
if (!x->second)
{
@ -359,6 +361,7 @@ void userrec::RemoveCloneCounts()
clonemap::iterator y = ServerInstance->global_clones.find(this->GetIPString());
if (y != ServerInstance->global_clones.end())
{
ServerInstance->Log(DEBUG, "Removed global");
y->second--;
if (!y->second)
{