summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-05-06 15:17:12 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-05-06 15:17:12 +0200
commit3e3ede8c30981da03fc46bd81c8e948bc3a761f0 (patch)
treeac65d7ef34ed509fd88da8f413373a7155fd07af /src
parent573c3e0eccc27539072817109f26570a05183df9 (diff)
Remove needless checks from Invitation::Find()
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp2
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(); )