From 3e3ede8c30981da03fc46bd81c8e948bc3a761f0 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 6 May 2014 15:17:12 +0200 Subject: Remove needless checks from Invitation::Find() --- src/channels.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') 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(); ) -- cgit v1.2.3