1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 05:26:38 +02:00

'Me' can not exist when channels are created

This commit is contained in:
Adam
2013-04-09 04:13:49 -05:00
parent 325b018ed0
commit 6faf4e3823
+2 -2
View File
@@ -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)