summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-13 21:52:21 -0400
committerAdam <Adam@anope.org>2011-09-10 01:52:46 -0400
commit8a6d6577bd6c9d5ca57c98d932a99ae890ba7cc8 (patch)
treec3d63ae7797a4c8d08cd7b75ef69a48720a9605d /src/channels.cpp
parent4a7ba7ef4cd92263d8187b1385d8bf46102ef7b3 (diff)
Removed log:inhabitlogchannel and replaced it with service:channels
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 0cd5481eb..52b0b86c5 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -401,7 +401,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const Anope::string &param, bo
if (EnforceMLock)
{
/* Reset modes on bots if we're supposed to */
- if (bi)
+ if (this->ci && this->ci->bi && this->ci->bi == bi)
{
if (Config->BotModeList.HasFlag(cm->Name))
this->SetMode(bi, cm, bi->nick);