diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-05-06 15:17:12 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-05-06 15:17:12 +0200 |
commit | 3e3ede8c30981da03fc46bd81c8e948bc3a761f0 (patch) | |
tree | ac65d7ef34ed509fd88da8f413373a7155fd07af /src | |
parent | 573c3e0eccc27539072817109f26570a05183df9 (diff) |
Remove needless checks from Invitation::Find()
Diffstat (limited to 'src')
-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(); ) |