Skip to content

Commit

Permalink
oscam-log.c Fix monitor lines only c and m were printed
Browse files Browse the repository at this point in the history
git-svn-id: http://streamboard.gmc.to/svn/oscam/trunk@3656 4b0bc96b-bc66-0410-9d44-ebda105a78c1
  • Loading branch information
dingo35 committed Oct 21, 2010
1 parent bfad62f commit 04dd918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oscam-log.c
Expand Up @@ -172,14 +172,14 @@ static void write_to_log(int flag, char *txt)
cs_strncpy(ptr+32, log_buf, CS_LOGHISTSIZE-33);
loghistidx=(++loghistidx < CS_MAXLOGHIST)?loghistidx:0;
#endif
if ((cur_client()->typ != 'c') && (cur_client()->typ != 'm'))
return;
struct s_client *cl;
for (cl=first_client; cl ; cl=cl->next)
{
if ((cl->log) && (cl->typ == 'm') && (cl->monlvl>0))
{
if (cl->monlvl<2) {
if ((cur_client()->typ != 'c') && (cur_client()->typ != 'm'))
continue;
if (strcmp(cur_client()->usr, cl->usr))
continue;
}
Expand Down

0 comments on commit 04dd918

Please sign in to comment.