diff options
| author | 2014-05-06 15:17:12 +0200 | |
|---|---|---|
| committer | 2014-05-06 15:17:12 +0200 | |
| commit | 3e3ede8c30981da03fc46bd81c8e948bc3a761f0 (patch) | |
| tree | ac65d7ef34ed509fd88da8f413373a7155fd07af /src/channels.cpp | |
| parent | Document the Membership and the Invitation class (diff) | |
| download | inspircd++-3e3ede8c30981da03fc46bd81c8e948bc3a761f0.tar.gz inspircd++-3e3ede8c30981da03fc46bd81c8e948bc3a761f0.tar.bz2 inspircd++-3e3ede8c30981da03fc46bd81c8e948bc3a761f0.zip | |
Remove needless checks from Invitation::Find()
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index a98b4ff87..19b1281d5 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -785,8 +785,6 @@ void Invitation::Create(Channel* c, LocalUser* u, time_t timeout) Invitation* Invitation::Find(Channel* c, LocalUser* u, bool check_expired) { ServerInstance->Logs->Log("INVITATION", LOG_DEBUG, "Invitation::Find chan=%s user=%s check_expired=%d", c ? c->name.c_str() : "NULL", u ? u->uuid.c_str() : "NULL", check_expired); - if (!u || u->invites.empty()) - return NULL; Invitation* result = NULL; for (InviteList::iterator i = u->invites.begin(); i != u->invites.end(); ) |
