comparison mcabber/src/utils.c @ 393:f8f3c7493457

Whitespace cleanup
author Mikael Berthe <mikael@lilotux.net>
date Thu, 04 Aug 2005 23:04:54 +0100
parents 2e6c7b1440d1
children 2f9852610cf4
comparison
equal deleted inserted replaced
392:6329c9601704 393:f8f3c7493457
1 /* 1 /*
2 * utils.c -- Various utility functions 2 * utils.c -- Various utility functions
3 * 3 *
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> 4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net>
5 * ut_* functions are derived from Cabber debug/log code. 5 * ut_* functions are derived from Cabber debug/log code.
6 * from_iso8601() comes from the Gaim project. 6 * from_iso8601() comes from the Gaim project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * This program is free software; you can redistribute it and/or modify
74 } 74 }
75 75
76 void ut_WriteLog(unsigned int flag, const char *data) 76 void ut_WriteLog(unsigned int flag, const char *data)
77 { 77 {
78 if (!DebugEnabled || !FName) return; 78 if (!DebugEnabled || !FName) return;
79 79
80 if (((DebugEnabled == 2) && (flag & (LPRINT_LOG|LPRINT_DEBUG))) || 80 if (((DebugEnabled == 2) && (flag & (LPRINT_LOG|LPRINT_DEBUG))) ||
81 ((DebugEnabled == 1) && (flag & LPRINT_LOG))) { 81 ((DebugEnabled == 1) && (flag & LPRINT_LOG))) {
82 FILE *fp = fopen(FName, "a+"); 82 FILE *fp = fopen(FName, "a+");
83 if (!fp) { 83 if (!fp) {
84 scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot open tracelog file"); 84 scr_LogPrint(LPRINT_NORMAL, "ERROR: Cannot open tracelog file");