From 04dd918ccace24e7fd4f871bce1dc847f1e36209 Mon Sep 17 00:00:00 2001 From: dingo35 Date: Thu, 21 Oct 2010 11:33:25 +0000 Subject: [PATCH] oscam-log.c Fix monitor lines only c and m were printed git-svn-id: http://streamboard.gmc.to/svn/oscam/trunk@3656 4b0bc96b-bc66-0410-9d44-ebda105a78c1 --- oscam-log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oscam-log.c b/oscam-log.c index 5e146a3e52..3cdfe195bb 100644 --- a/oscam-log.c +++ b/oscam-log.c @@ -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; }