summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-09 04:13:49 -0500
committerAdam <Adam@anope.org>2013-04-09 04:13:49 -0500
commit6faf4e38236b1a05ce18f7a437de529c1f4ba4b1 (patch)
tree34abed1b5de1a585fba5c1588ef3cebfba047274 /src/channels.cpp
parent325b018ed0f39e21adad68d8d9223d505bef12f8 (diff)
'Me' can not exist when channels are created
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp4
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)