comparison main.c @ 12:6440ba6e3466

Do not print a warning if an empty notification is skipped
author Guido Berhoerster <guido+xwrited@berhoerster.name>
date Mon, 16 Mar 2015 20:04:12 +0100
parents fd2e275436a4
children eb97cafe34e5
comparison
equal deleted inserted replaced
11:fd2e275436a4 12:6440ba6e3466
164 * skip empty messages or messages only consisting of whitespace and 164 * skip empty messages or messages only consisting of whitespace and
165 * control characters 165 * control characters
166 */ 166 */
167 if ((strlen(body) == 0) || 167 if ((strlen(body) == 0) ||
168 !g_regex_match_simple("[^[:space:][:cntrl:]]", body, 0, 0)) { 168 !g_regex_match_simple("[^[:space:][:cntrl:]]", body, 0, 0)) {
169 retval = TRUE;
169 goto out; 170 goto out;
170 } 171 }
171 172
172 /* 173 /*
173 * if the notification daemon supports markup the message needs to be 174 * if the notification daemon supports markup the message needs to be