Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
filter out channels marked as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Oct 22, 2017
1 parent 1fd5aee commit aee4526
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vnsiclient.c
Expand Up @@ -1097,6 +1097,9 @@ bool cVNSIClient::processCHANNELS_GetChannels(cRequestPacket &req) /* OPCODE 63
if (channel->Sid() == 0)
continue;

if (endswith(channel->Name(), "OBSOLETE"))
continue;

// check filter
if (filter && !VNSIChannelFilter.PassFilter(*channel))
continue;
Expand Down Expand Up @@ -1229,6 +1232,9 @@ bool cVNSIClient::processCHANNELS_GetGroupMembers(cRequestPacket &req)
if(name.empty())
continue;

if (endswith(channel->Name(), "OBSOLETE"))
continue;

if(cVNSIChannelFilter::IsRadio(channel) != radio)
continue;

Expand Down

0 comments on commit aee4526

Please sign in to comment.