diff options
author | Adam <Adam@anope.org> | 2013-04-09 04:13:49 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-09 04:13:49 -0500 |
commit | 6faf4e38236b1a05ce18f7a437de529c1f4ba4b1 (patch) | |
tree | 34abed1b5de1a585fba5c1588ef3cebfba047274 /src/channels.cpp | |
parent | 325b018ed0f39e21adad68d8d9223d505bef12f8 (diff) |
'Me' can not exist when channels are created
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 4 |
1 files 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) |