From 6faf4e38236b1a05ce18f7a437de529c1f4ba4b1 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 9 Apr 2013 04:13:49 -0500 Subject: [PATCH] 'Me' can not exist when channels are created --- src/channels.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channels.cpp b/src/channels.cpp index aa67d9683..b666e74be 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -41,7 +41,7 @@ Channel::Channel(const Anope::string &nname, time_t ts) if (this->ci) this->ci->c = this; - if (Me->IsSynced()) + if (Me && Me->IsSynced()) Log(NULL, this, "create"); FOREACH_MOD(I_OnChannelCreate, OnChannelCreate(this)); @@ -53,7 +53,7 @@ Channel::~Channel() ModeManager::StackerDel(this); - if (Me->IsSynced()) + if (Me && Me->IsSynced()) Log(NULL, this, "destroy"); if (this->ci)