1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 21:03:13 +02:00

fixed a bug in chanstats

This commit is contained in:
DukePyrolator
2012-04-13 18:33:22 +02:00
parent 7372b457cc
commit b752c3a668
3 changed files with 10 additions and 5 deletions
+2 -2
View File
@@ -537,7 +537,7 @@ void Channel::SetMode(BotInfo *bi, ChannelMode *cm, const Anope::string &param,
}
ModeManager::StackerAdd(bi, this, cm, true, param);
SetModeInternal(bi ? finduser(bi->nick) : NULL, cm, param, EnforceMLock);
SetModeInternal(bi, cm, param, EnforceMLock);
}
/**
@@ -589,7 +589,7 @@ void Channel::RemoveMode(BotInfo *bi, ChannelMode *cm, const Anope::string &para
}
ModeManager::StackerAdd(bi, this, cm, false, realparam);
RemoveModeInternal(bi ? finduser(bi->nick) : NULL, cm, realparam, EnforceMLock);
RemoveModeInternal(bi, cm, realparam, EnforceMLock);
}
/**
+1 -1
View File
@@ -70,7 +70,7 @@ Server::Server(Server *uplink, const Anope::string &name, unsigned hops, const A
if (cm == NULL)
cm = ModeManager::FindChannelModeByChar(ModeManager::GetStatusChar(want_modes[j]));
if (cm && cm->Type == MODE_STATUS)
c->SetModeInternal(bi ? finduser(bi->nick) : NULL, cm, bi->nick);
c->SetModeInternal(bi, cm, bi->nick);
}
}
}