From b752c3a668e035a75e0989ae85fddc893aec53f9 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Fri, 13 Apr 2012 18:33:22 +0200 Subject: fixed a bug in chanstats --- src/channels.cpp | 4 ++-- src/servers.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); } } } -- cgit