diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2012-04-13 18:33:22 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2012-04-13 18:33:22 +0200 |
commit | b752c3a668e035a75e0989ae85fddc893aec53f9 (patch) | |
tree | ee1abe8b036f574ba31478d2aab00f31cda1d946 /src | |
parent | 7372b457cc355f750631860d2d85d13e0089a72a (diff) |
fixed a bug in chanstats
Diffstat (limited to 'src')
-rw-r--r-- | src/channels.cpp | 4 | ||||
-rw-r--r-- | src/servers.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 6035d1657..3d9f8c7c6 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -537,7 +537,7 @@ void Channel::SetMode(BotInfo *bi, ChannelMode *cm, const Anope::string ¶m, } 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 ¶ } ModeManager::StackerAdd(bi, this, cm, false, realparam); - RemoveModeInternal(bi ? finduser(bi->nick) : NULL, cm, realparam, EnforceMLock); + RemoveModeInternal(bi, cm, realparam, EnforceMLock); } /** diff --git a/src/servers.cpp b/src/servers.cpp index 6ccd4c403..1db800227 100644 --- a/src/servers.cpp +++ b/src/servers.cpp @@ -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); } } } |